Welcome! This page is using CodeRay 1.1.2.
We currently have
3061 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Javatest |
7 lines
of
JavaScript
|
290 Bytes |
Show |
Edit |
Expand |
1
2
3 |
var hubConnection = $.hubConnection("http://lsesrv:5001", {useDefaultUrl: false});
var hubConnectionProxy= hubConnection.createHubProxy('PrintJobSignalR');
hubConnectionProxy.on('PrintJobUpdate',... |
|
stas |
17 lines
of
Ruby
by
stas
|
516 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
def new_idea
@idea = Idea.create(header: params[:header], body: params[:body], video: params[:video], user_id: @current_user.id)
render layout: false
end
def set_session
... |
|
asf |
42 lines
of
Ruby
by
asdf
|
902 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
def output_box str, charh, charv, charc
stra = (str + "\n ").split("\n")
stra.pop
strl = stra.max_by{|a| a.length}.length
i = 0
puts charc + charh * (strl + 2) + charc
while i < stra.l... |
|
define guards |
6 lines
of
C++
by
JJ
|
82 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
#ifndef FOO_BAR_BAZ_H_
#define FOO_BAR_BAZ_H_
...
#endif |
|
python |
8 lines
of
Python
|
316 Bytes |
Show |
Edit |
Expand |
1
2
3 |
Более того, поскольку в интерактив ном сеансе результаты выражений, которые вы вводите, печатаются ав томатически, вам необязательно явно вводить «print» после подсказки:
>>>lumberjack = 'okay'
... |
|
gfbfbgbfgb |
1 line
of
ERb
|
18 Bytes |
Show |
Edit |
Expand |
|
Swagger2Markup |
15 lines
of
Java
by
cascer1
|
509 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
Path swaggerFile = Paths.get("work/input/spec.yaml");
Path outputFile = Paths.get("work/temp/api");
Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder()
.withMarkupLanguage(Markup... |
|
HTML_TEST |
12 lines
of
HTML
|
281 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<html>
<head>
<style>
#box1{ width:225px; height:225px; background-image:url(earth.jpg); }
#box2{ width:500px; height:300px; margin-top:80px; background-image:url('earth.jpg'); }
</style... |
|
common |
52 lines
of
YAML
|
1017 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
displayName: Common
displayColor: WHITE
identifierColor: DARK_RED
enchantments:
safeBaseEnchantments: true
safeBonusEnchantments: false
allowHighBaseEnchantments: true
allowHighBonus... |
|
ds |
1 line
of
JSON
|
63 Bytes |
Show |
Edit |
Expand |
1 |
{ :array => [1, 2, 3, { :sample => "hash"} ], :foo => "bar" }
|
|