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.
asdasd |
27 lines
of
Ruby
by
asdasd
|
375 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
class PostsController < ApplicationController
def index
@posts = Post.all
end
def new
end
def create
@post = Post.new(post_params)
@post.save
redirect... |
|
A part of vb.net code |
62 lines
of
Delphi
by
gapsdv
|
1.64 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
<Serializable()> _
Public Class Test
Implements ITest
Public Property kommaZahl() As Double Implements ITest.kommaZahl
Get
Return 1.2
End Get
... |
|
ansible yaml |
36 lines
of
YAML
by
M
|
1.22 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
---
- hosts: all
tasks:
- name: ensure nginx is installed
action: apt pkg=nginx state=present
- name: ensure nginx is running
action: service name=nginx state=started
- hosts... |
|
Ember.js snippet |
11 lines
of
JavaScript
by
rydog
|
228 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
require('ember-metal/enumerable');
var guideFor = Ember.guidFor;
var copy = function(obj) {
var output = {};
for (var prop in obj) {
if(obj.hasOwnProperty(prop)) { output... |
|
test |
40 lines
of
Ruby
|
797 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
class Sathia
def full_name
"Sathianarayanan Sundaram"
end
def working_in type=:current
experience = { current: 'Hoppr', past: 'Cloudmint'}
experience... |
|
test |
2 lines
of
PHP
|
20 Bytes |
Show |
Edit |
Expand |
|
testing bash |
2 lines
of
Plain text
|
35 Bytes |
Show |
Edit |
Expand |
1
2 |
# test comment
yum install coderay |
|
omg.py |
3 lines
of
Python
|
42 Bytes |
Show |
Edit |
Expand |
1
2
3 |
def wtf( omg ):
print( "wtf", omg )
|
|
test |
25 lines
of
Ruby
by
test
|
645 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
def exploit
connect()
preamble = "\x00\x4d\x00\x03\x00\x01"
version = probe_ver()
if version == 5
payload = prep_ark5()
else
payload = prep_ark4()
end
preamble << pay... |
|
testing java highlight |
4 lines
of
Java
|
155 Bytes |
Show |
Edit |
Expand |
1
2
3
4 |
EntityManager em = usuarioDAO.getEntityManager();
em.getTransaction().begin();
usuarioDAO.salvar(getUsuarioSelecionado());
em.getTransaction().commit(); |
|