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.
banks |
3 lines
of
JavaScript
by
vbnamls
|
97 Bytes |
Show |
Edit |
Expand |
1
2
3 |
Ember.ButtonExampleView = Ember.View.extend ({
classNames: ['lwui-button-example-view']
}); |
|
das |
35 lines
of
HTML
by
ds
|
663 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title... |
|
hi |
26 lines
of
Ruby
by
mp
|
524 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
def badge_maker(name)
return "Hello, my name is #{name}."
end
def batch_badge_creator(array)
array.map do |e|
badge_maker(e)
end
end
def assign_rooms(array)
room_assi... |
|
test |
47 lines
of
Ruby
|
1.05 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
42
"String with #{ :interpolation }"
/regex$/
$/
|
|
test |
23 lines
of
Ruby
by
test
|
714 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
class ForgotPasswordMailer < ActionMailer::Base
def forgot_password(password, _somethine)
setup_email(password.user)
@subject += 'You have requested to change your password'
... |
|
c-example |
13 lines
of
C++
by
WongleDongle
|
477 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
static void Main(string[] args)
{
var unityContainer = new UnityContainer();
unityContainer.LoadConfiguration();
... |
|
あさsd |
1 line
of
C
|
7 Bytes |
Show |
Edit |
Expand |
|
ouea |
14 lines
of
Ruby
|
512 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
unless JSON.parse(`#{docker} inspect #{container_name}`).empty?
sh "#{docker} rm -f #{container_name}"
end
puts "Creating image..."
sh <<-EOF
#{docker} \
create \
... |
|
Try2 |
2 lines
of
PHP
|
116 Bytes |
Show |
Edit |
Expand |
1
2 |
$ExampleMasterObj = new ExampleMaster();
$ExampleMasterObj->exec_query(); or $ExampleMasterObj->exec_query($sql); |
|
Question Test |
1 line
of
Java
by
Hi
|
122 Bytes |
Show |
Edit |
Expand |
1 |
How many times does the following loop execute? for (int i = 0; i < 12; i++) <br> { System.out.println("Hello world!"); } |
|