Welcome! This page is using CodeRay 1.1.2.
We currently have
3042 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
xxx |
12 lines
of
Ruby
by
xx
|
315 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
initial =
ui = SomeInteractor.new
ui.go! initial
ui.click_button 'View Nutritionist'
ui.click_button 'Schedule Appointment'
ui.click_button 'Fill Skinfold Sites'
ui.field(:id => 'ABS').... |
|
test |
3 lines
of
Ruby
by
s
|
29 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def binbin
puts "try"
end |
|
h |
1 line
of
Plain text
|
3 Bytes |
Show |
Edit |
Expand |
|
PHP test |
12 lines
of
PHP
by
tester
|
126 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
<?php
function codeRay(){
$test = 1;
$test = "test2";
if($test == true){
return true;
} else {
return false;}
} |
|
s |
17 lines
of
Ruby
|
456 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
module CheckedAttributes
def self.included(base)
base.extend ClassMethods
end
module ClassMethods
def attr_checked(attribute, &validation)
define_method "#{attribute}="... |
|
HTML and CSS test |
54 lines
of
HTML
by
Tester
|
2.18 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
<html>
<title>Test</title>
<style type="text/css">
ul, ol, pre, dl, p { margin-top:0px; margin-bottom:0px; }
code.escaped { white-space: nowrap; }
.vspace { margin-top:1.33em; }
.in... |
|
Buttons |
3 lines
of
HTML
|
148 Bytes |
Show |
Edit |
Expand |
1
2
3 |
<button class="button">Button</button>
<button class="button secondary">Button Secondary</button>
<button class="button full">Button Full</button> |
|
rea |
16 lines
of
JavaScript
|
293 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 |
var Counter = React.createClass({
props: {
count: Props.number
},
render: function() {
return (
<div className="counterRoot">
{this.props.count}
</div>
);
}
});
... |
|
f |
3 lines
of
Ruby
|
28 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def hello
puts "hello"
end |
|
gg |
50 lines
of
HTML
|
1.5 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
<!DOCTYPE html>
<html>
<head>
<meta content="initial-scale=1.0, width=device-width" name="viewport">
<link href="../css/reset.css" rel="stylesheet" type="text/css">
<link href=".... |
|