Welcome! This page is using CodeRay 1.1.2.
We currently have
3063 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Test |
6 lines
of
Ruby
by
None
|
81 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
module Test
def self.test
puts "hi"
@test = Test.find(params[:test])
end
end |
|
Test |
37 lines
of
Clojure
by
http://clojuredocs.org
|
1.22 KB |
Show |
Edit |
Expand |
1
2
3
4
5 |
user=> (defmacro loop-forever [& body] `(loop [] ~@body (... |
|
comment test |
1 line
of
Ruby
by
Denis Defreyne
|
19 Bytes |
Show |
Edit |
Expand |
|
sql |
7 lines
of
SQL
|
253 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
UPDATE `channels_groups`
SET `group_sort_order` = `group_sort_order` + 1
WHERE group_sort_order > 15
AND group_sort_order < 99
AND group_type = 'SPP';
INSERT INTO `channels_groups`
VALUE... |
|
irb |
5 lines
of
Plain text
by
zed
|
133 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
ruby-1.9.2-p290 :001 > 2+2
=> 4
ruby-1.9.2-p290 :002 > "a.b.c.d".split('.')
=> ["a", "b", "c", "d"]
ruby-1.9.2-p290 :003 > ^D |
|
php with jquery and html |
21 lines
of
PHP
by
plambata
|
599 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="... |
|
rstring.c - In-place ASCII string reversal |
82 lines
of
C
by
Troy J. Farrell
|
2.84 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
#include <stdio.h>
#include <string.h>
int reverseString( char * );
int main( int arg... |
|
zend_builtin_functions.c |
19 lines
of
diff
|
455 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
@@ -303,13 +300,14 @@
Get string length */
ZEND_NAMED_FUNCTION(zend_if_strlen)
{
- zval **str;
+ char *s1;
+ int s1_len;
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &str... |
|
sdsd |
1 line
of
XML
|
5 Bytes |
Show |
Edit |
Expand |
|
nom |
25 lines
of
C
|
495 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
1 class("mutter")
2
3 function mutter.new(name)
4 return {name = name}
5 end
6
7 function mutter:print()
8 print("Ausgabe: " .. self.name
9 end
10
11 class("kind", mutte... |
|