Welcome! This page is using CodeRay 1.1.2.
We currently have
3049 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
media_server_controller.rb |
15 lines
of
Ruby
by
Rack::App
|
235 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
require 'rack/app'
class MediaServerController < Rack::App
serve_files_from '/public'
serve_files_from 'assets', to: '/assets'
mount_directory '/ww... |
|
sd |
5 lines
of
Plain text
|
814 Bytes |
Show |
Edit |
Expand |
1
2 |
I, [2016-03-24T20:21:38.469779 #21744] INFO -- : Fetching http://xkcd.com
I, [2016-03-24T20:21:39.035784 #21744] INFO -- : Extracting html at #comic img: ["//imgs.xkcd.com/comics/tire_swing.png"... |
|
dfbgdfg |
1 line
of
XML
|
6 Bytes |
Show |
Edit |
Expand |
|
rrr |
3 lines
of
Ruby
by
rrrr
|
20 Bytes |
Show |
Edit |
Expand |
|
test |
4 lines
of
Ruby
|
49 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
class TopovskiNapad
include Singleton
...
end |
|
test |
4 lines
of
Ruby
|
84 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
def test_obstaja_ena_instanca
assert_equal @igra, TopovskiNapad.instance
end |
|
a |
11 lines
of
JSON
|
176 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
{
iss: "myKronoz Auth 1.0",
sub: 4564356,
name: 'John Doe',
role: 'user',
exp: 1458902744,
context: {
lang: "en_UK",
tz: "Pacific/Pago_Pago"
}
} |
|
html |
11 lines
of
HTML
by
Jack He
|
489 Bytes |
Show |
Edit |
Expand |
1
2
3 |
<button id="alert-content" class="btn btn-primary" type="button">自定义内容的alert</button>
<button id="alert-title-content" class="btn btn-primary" type="button">自定义标题和内容的alert</button>
<button id="co... |
|
şdasdasdasd |
13 lines
of
Ruby
|
214 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
class TopovskiNapad
SVETLOBNA_HITROST = 299792458
attr_accessor :stevilo_strelov
attr_accessor :razdalja_do_tarce
attr_accessor :hitrost
attr_accessor :kot
def initialize
... |
|
test |
3 lines
of
Ruby
|
43 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def reset
@stevilo_strelov = 0
end |
|