Welcome! This page is using CodeRay 1.1.2.
We currently have
3066 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
C++ |
37 lines
of
C++
|
773 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
#include <algorithm>
#include <iostream>
#include <vector>
#include <functional>
using namespace std;
typedef function<int(int)> FuncIntToInt;
int main()
{... |
|
PHP Test |
8 lines
of
Python
by
Test
|
401 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
ghci> :t fmap (++) (Just "hey")
fmap (++) (Just "hey") :: Maybe ([Char] -> [Char])
ghci> :t fmap compare (Just 'a')
fmap compare (Just 'a') :: Maybe (Char -> Ordering)
ghci> :t fmap com... |
|
Objective-C test |
6 lines
of
C
by
test
|
142 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
NSNumber *max = nil;
for (NSNumber *number in numbers) {
if (!max || [number compare:max] == NSOrderedDescending) {
max = number;
}
} |
|
Hello |
1 line
of
Delphi
by
murphy
|
6 Bytes |
Show |
Edit |
Expand |
|
test my py |
12 lines
of
Python
|
300 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
import hashlib
class HashRing(object):
def __init__(self, nodes=None, weights=None):
self.ring = dict()
self._sorted_keys = []
self.nodes = nodes
if no... |
|
SQL Test - Coffee |
4 lines
of
SQL
by
CoffeeKid
|
90 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
copy tmp_1303845643
from '/var/www/upload.csv'
using delimiters ';'
with csv HEADER; |
|
Testing JavaScript |
3 lines
of
JavaScript
by
Ryan Bates
|
36 Bytes |
Show |
Edit |
Expand |
1
2
3 |
function() {
var test = "foo";
} |
|
hello world |
8 lines
of
Ruby
|
108 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
puts "hello world"
array.each do |elem|
if elem > 1
puts "foo"
else
puts "bar"
end
end |
|
test |
1 line
of
JSON
by
me
|
475 Bytes |
Show |
Edit |
Expand |
1 |
{ "carousels":[], "mainProduct":{ "originalCount":0, "percentViewed":null, "partNumber":"00946935000P", "vertical":"Wedding Shop", "category":"Auto & Mechanics Tools", "subCategory":"Wrenches",... |
|
ruby space test |
6 lines
of
Ruby
|
83 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
def foo(users)
puts "bar"
[users].each do |user|
user.foo!
end
end
|
|