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.
CoffeScript |
29 lines
of
C
|
534 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13 |
# include <stdio.h>
# include <stdlib.h>
# include <stdbool.h>
# define nil NULL
# define real true
# define fake false
# define exit_success 0
# defi... |
|
Fact |
7 lines
of
Ruby
by
Red
|
63 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
def fact(n)
(n-1).downto(1) {|x|
n *= x;
}
n;
end
fact(5) |
|
qtest |
10 lines
of
C
|
414 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class MainController < ApplicationController
def index
@range = (0..params[:amount].to_i - 1).to_a
@array = @range.collect { rand(params[:min].to_i..params[:max].to_i) }
@sorted =... |
|
YAMLtest |
2 lines
of
YAML
by
Jon
|
40 Bytes |
Show |
Edit |
Expand |
1
2 |
test: "key1/key1"
url: "http://foo.com" |
|
diff test2 |
59 lines
of
diff
by
kek
|
1.24 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- highlight (1.1.4)
+ highli... |
|
diff test |
12 lines
of
diff
by
kek
|
507 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
--- a/lib/simplabs/highlight.rb
+++ b/lib/simplabs/highlight.rb
@@ -79,6 +79,7 @@ class << self
|
|
asdfsa |
21 lines
of
C
|
786 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<h2>Information on software commands</h2>
<#list doc.step as st>
<h3 id="${st.command.elementId}">${st.command.commandName}</h3>
<p><i>Description</i> ${st.description!""}<p>
<p><i>R... |
|
Pytry |
43 lines
of
Python
by
scvr
|
1.21 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
import os
import math
import csv
import sys
with open(sys.argv[1], "rb") as infile, open("IRanges.txt", "wb... |
|
JS Try |
1 line
of
JavaScript
|
220 Bytes |
Show |
Edit |
Expand |
1 |
buttons.push({ button: btnUnlockContract, isEndabled: function () { return model.getSelectedEntity() !== null && !!model.getSelectedEntity().Status && model.getSelectedEntity().Status.Name.indexOf(... |
|
Blink |
4 lines
of
Plain text
by
Arduino
|
105 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
# chmod +x /etc/init.d/tomcat
# chkconfig --add tomcat
# chkconfig tomcat on
# service tomcat start
|
|