Welcome! This page is using CodeRay 1.1.2.
We currently have
3055 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Audit Database Class |
122 lines
of
PHP
|
2.98 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
<?php
class DataBase
{
protected $_pdo = null;
protected $_banco = null;
protected $_config = null;
public function __construct()
{
try {
$t... |
|
CSS Parser |
15 lines
of
Ruby
by
mg
|
387 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
require 'css_parser'
class InlineStyle
class CssParserWrapper
attr_accessor :rules
def initialize(css_code)
parser, @rules = CssParser::Parser.new, []
parser.add_blo... |
|
foo.rb |
6 lines
of
Ruby
|
50 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def foo
puts "Foo"
end
foo |
|
T |
41 lines
of
C
|
932 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
def repS(word,n)
return false if n==nil
x=rand(3)
word[n..n]="aS" if x==0
word[n..n]="bD" if x==1
word[n..n]="fR" if x==2
return true
end
def repD(word,n)
return false if ... |
|
test |
13 lines
of
diff
|
564 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
--- a/app/views/pages/welcome.html.erb
+++ b/app/views/pages/welcome.html.erb
|
|
tst |
8 lines
of
PHP
|
934 Bytes |
Show |
Edit |
Expand |
1 |
2013-09-28 17:20:31 [WARN ] [14.99.20.134][39b1c68c][yacoob] Creating vhost entry for yacoob1.dev.deccanhosts.com. Calling userenv api at http: |
|
sql replace |
1 line
of
SQL
by
jokie
|
24 Bytes |
Show |
Edit |
Expand |
|
func |
7 lines
of
YAML
|
153 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
c_report: function(params){
if (self.socket){
self.socket.emit("c_report", params);
} else {
self.staledEvents.push(params);
}
} |
|
Name |
3 lines
of
Java
|
24 Bytes |
Show |
Edit |
Expand |
1
2
3 |
public class Main {
} |
|
C++ Templates |
72 lines
of
C++
by
Myles Hathcock
|
1.31 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
#include <iostream>
#include <list>
class ScopeCaller
{
template <class C, void (C::*method)()>
static void method_thunk(void* obj)
{
(static_cast<C*>(obj)->*method)();
}
temp... |
|