Welcome! This page is using CodeRay 1.1.2.
We currently have
3042 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Testing sql code |
3 lines
of
SQL
by
Jannes Jin
|
63 Bytes |
Show |
Edit |
Expand |
1
2
3 |
select cd_mov, cd_sbt_mov
from tablemovf
where cd_mov = 7639 |
|
asdf |
1 line
of
XML
by
asdf
|
4 Bytes |
Show |
Edit |
Expand |
|
java |
18 lines
of
Java
|
589 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
public Boolean isTheAccountToApprove(List<String> groupandrole,
Long flownodeId) {
if (flownodeId == null)
return false;
TFlowNodeCM node = get(TFlowNodeCM.class, flownodeId);
TPri... |
|
test |
1 line
of
Ruby
by
test
|
9 Bytes |
Show |
Edit |
Expand |
|
Simple json |
4 lines
of
JSON
by
Pavel
|
60 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
{
'_first_name': 'Benjamin',
'_last_name': 'Smith'
} |
|
Groovy test |
1 line
of
Groovy (beta)
|
31 Bytes |
Show |
Edit |
Expand |
1 |
println "hellow Groovy CodeRay" |
|
test |
5 lines
of
CSS
|
202 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
CREATE TABLE vs_clickinfo (
counter_id BIGINT(20) NOT NULL PRIMARY KEY AUTO_INCREMENT,
counter_ip VARCHAR(15) NOT NULL DEFAULT '',
counter_timed VARCHAR(11) NOT NULL DEFAULT ''
)ENGINE=MY... |
|
Bash? |
5 lines
of
Python
|
196 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
remoteIP=$(/sbin/ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | grep '192.128' | awk '{print $2}')
/sbin/route -n add -host 123.255.255.123 $remoteIP >> /tmp/ppp.log 2>&1 |
|
Attribute presets |
17 lines
of
Ruby
by
Jay McGavren
|
679 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def save_preset
t = Time.new
file_name = sprintf("%04d-%02d-%02d_%02d%02d%02d", t.year, t.month, t.day, t.hour || 0, t.min || 0, t.sec || 0)
File.open(File.join(preset_directory, fil... |
|
JavaScript test |
17 lines
of
JavaScript
by
murphy < Jamis Buck
|
543 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
document.observe("dom:loaded", function() {
$(document.body).observe("click", function(event) {
var element = event.findElement("a[data-toggle]");
if(element) {
var action = ele... |
|