Welcome! This page is using CodeRay 1.1.2.
We currently have
3054 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
Test |
82 lines
of
HTML
|
2.44 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
<html>
<head>
<title>Simplon Kataloge</title>
</head>
<body>
<div class="issuu_wrapper">
<h3 style="color:#003a78;">EINLEITUNG</h3>
<iframe class="issuu" width="525" height="186" s... |
|
Test |
82 lines
of
CSS
|
2.44 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
<html>
<head>
<title>Simplon Kataloge</title>
</head>
<body>
<div class="issuu_wrapper">
<h3 style="color:#003a78;">EINLEITUNG</h3>
<iframe class="issuu" width="525" height="186" s... |
|
asdfasdf |
4 lines
of
Java
|
135 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
String string = "004-034556";
String[] parts = string.split("-");
String part1 = parts[0];
String part2 = parts[1]; |
|
MS Ini File |
12 lines
of
HAML
|
210 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
[mac-1]
; MAC address
mac=F4-F2-6D-05-54-05
; Number of IP addresses in this port
ip-count=1
; List of IP addresses
; list format ip-1-1 where ip-<Mac number>-<IP number>
ip-1-1=192.168.1.... |
|
asd |
41 lines
of
Ruby
|
1.23 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
require 'helpdesk'
::Helpdesk.setup do |config|
config.user_class = "User"
config.... |
|
asD |
14 lines
of
Ruby
|
408 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6 |
module SecurityGuard
class DestroyForbidden < RuntimeError; end
def destroy
message = if [Payment, Game].include? self.class
"#{self.class} instances could not be destroyed"... |
|
Toto |
8 lines
of
C++
|
107 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
class A
{
public:
int getValue() const;
void setValue(int value);
private:
int value;
}; |
|
ERB |
7 lines
of
ERb
by
hui s gorbl
|
376 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
<% u = User.find User.current %>
<% unless u.groups.any? { |g| g.id == 35 } %>
<% if @issue.safe_attribute? 'assigned_to_id' %>
<p><%= f.select :assigned_to_id, principal... |
|
Node Inspect |
1 line
of
ERb
|
280 Bytes |
Show |
Edit |
Expand |
1 |
#<Node id: 15, title: "Investor Applications Consultant", tldr: "Ut eligendi voluptatibus maxime temporibus et sed ...", body: "Beatae cum nam et. Velit facere quo et. Voluptatem...", created_at: "... |
|
Instance Variable example |
26 lines
of
SQL
by
Jill
|
413 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 |
class User
def set_user(string)
string = Dog.new
p {"Doggy Wolf"}
end
end
class Dog
end
Tom = User.new("Tom")
def method_one
@var = "a variable"
puts @var
end
d... |
|