Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
pgsql_rb_dsltest |
8 lines
of
Ruby
by
+1CM
|
234 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
require 'rubygems'
require 'sequel'
DB = Sequel.connect('postgres://user:pwd@localhost:5432/mydb')
dataset = DB["SELECT tag FROM blog_posts"]
dataset.map(:tag)
DB.fetch("SELECT tag FROM blog_p... |
|
test c# |
4 lines
of
Java
|
95 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
public interface ISearchManager
{
IEnumerable Search(string keyword);
}
|
|
test |
14 lines
of
SQL
|
494 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
SELECT NULL object_id,
'CO2_AT' AS object_name,
873 AS type_id,
qu_deliverydate_local AS start_date,
LAST_DAY (qu_deliverydate_local) AS end_date... |
|
test |
1 line
of
ERb
|
107 Bytes |
Show |
Edit |
Expand |
1 |
<p style="background:grey; color:red; font-variant:italic">An error occured while hilighting the code!</p>' |
|
template template |
6 lines
of
C++
|
151 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
template <template<class T, class Allocator=std::allocator<T> > class Container>
class hoge {
Container<int> c;
};
hoge<std::vector> h; |
|
Code |
16 lines
of
Ruby
|
761 Bytes |
Show |
Edit |
Expand |
1
2
3 |
for group, skill_ratings in @character.active_skill_ratings.group_by(&:group).sort_by { |group, skill_ratings| group ? [1, group.name] : [2] }
if group && @character.skill_groups.include?(g... |
|
Hi |
6 lines
of
PHP
|
85 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
echo "Test is successfull";
class HelloWorld {
function __construct() {
}
} |
|
teste |
39 lines
of
diff
by
fab
|
835 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
--- /path/to/original ''timestamp''
+++ /path/to/new ''timestamp''
@@ -1,3 +1,9 @@
+This is an important
+notice! It should
+therefore be located at
+the beginning of this
+document!
+... |
|
just testing the share code |
20 lines
of
Ruby
by
chandra
|
122 Bytes |
Show |
Edit |
Expand |
|
ruby hello |
1 line
of
Ruby
|
18 Bytes |
Show |
Edit |
Expand |
|