Welcome! This page is using CodeRay 1.1.2.
We currently have
3055 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
ruby |
21 lines
of
Ruby
by
Me
|
283 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
class SnippetsController < ApplicationController
before_action :authenticate_user!, except: :index
def index
@snippets = Snippet.all.limit(10)
end
def show
@snippet = Sn... |
|
test.c |
9 lines
of
C
|
342 Bytes |
Show |
Edit |
Expand |
|
test .c file |
9 lines
of
C
|
342 Bytes |
Show |
Edit |
Expand |
|
Incomplete |
1 line
of
Ruby
|
12 Bytes |
Show |
Edit |
Expand |
|
json test |
38 lines
of
JSON
by
fmosdo
|
630 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
[{"id": "530670ca74756c10e6160000",
"nome": "Séries",
"tipo": "CardPrograma",
"linhas": 1,
"posicao": 1,
"tipo_item": "programa",
"itens": [
{
"id": 78... |
|
agent fixtures |
9 lines
of
YAML
|
158 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
bond:
first_name: James
last_name: Bond
email: jamesbond007@mi6.gov.uk
bourne:
first_name: Jason
last_name: Bourne
email: jbourne@cia.gov |
|
fabricator |
116 lines
of
Delphi
|
3.22 KB |
Show |
Edit |
Expand |
|
fabricator |
5 lines
of
Ruby
|
142 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
Fabricator :agent do
first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name }
email { Faker::Internet.email }
end |
|
rspec by think200.com |
7 lines
of
Ruby
by
Robb Shecter
|
114 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
class Greeter
def initialize(name = "World")
@name = name
end
def say_hi
puts "Hello, #{@name}!"
end |
|
test45 |
3 lines
of
Plain text
|
20 Bytes |
Show |
Edit |
Expand |
|