Welcome! This page is using CodeRay 1.1.2.
We currently have
3055 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
CoffeeScript test |
2 lines
of
JavaScript
by
kikan
|
43 Bytes |
Show |
Edit |
Expand |
1
2 |
$.get "url", (data) ->
console.log data |
|
break for test in cycles |
1 line
of
Ruby
by
Zhitko
|
85 Bytes |
Show |
Edit |
Expand |
1 |
break if not ( ((@_y||=0) && (@_y+=1) && (@_y==1)) || @_y<=3 || ((@_y=0)&&(@_y!=0)) ) |
|
test |
1 line
of
Plain text
by
tes
|
4 Bytes |
Show |
Edit |
Expand |
|
worker |
17 lines
of
Ruby
by
mp
|
450 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
require 'fiber'
my_fiber = Fiber.new do
puts 'fiber> started'
Fiber.yield |
|
20 lines of Erb |
19 lines
of
ERb
by
Garrett
|
743 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<div class="box">
<div class="alignLeft">
<a href="<%= list.identifier %>" class="heading"><%= list.title %></a>
<ul>
<li class="first"><a href="<%= items.first.identifier %>"><%=... |
|
clojure example |
1 line
of
Clojure
|
9 Bytes |
Show |
Edit |
Expand |
|
Network security: LAN Manager authentication level |
13 lines
of
Java
|
1.48 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"LmCompatibilityLevel"=dword:00000001
; http:
;
; Level 0... |
|
filter hash in place |
4 lines
of
Ruby
|
91 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
h= {:bob => 'bob', ralph => 'ralph'}
h.select!{|k,v| k.to_s =~ /ob/}
=> {:bob => 'bob'} |
|
Ruby test |
4 lines
of
Ruby
|
138 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
puts "Initializing new server"
server = Server.new(provider.servers.bootstrap(options))
puts "Updating"
server.ssh("aptitude update")
|
|
b1 |
8 lines
of
SQL
|
259 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
data_chunks.each |chunk|
chunk_array = get_you_some_more_data
chunk_array.map!{|x| format_for_client(x)}
chunk_array.map!{|x| maybe_more_formatting(x)} if client.extra_work?
chunk_array... |
|