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.
Clojure |
10 lines
of
Clojure
by
The ClojureMan
|
235 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10 |
(ns demo.web
(:use [ring.adapter.jetty :only [run-jetty]]))
(defn app [req]
{:status 200
:headers {"Content-Type" "text/plain"}
:body "Hello, world"})
(defn -main [port]
(run... |
|
aa |
21 lines
of
PHP
|
457 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12 |
<?php
$url = <<<EOF
$address."?".$parameters
EOF;
$credentials = $username.":".$password;
$curl_handle = curl_... |
|
est |
141 lines
of
C
|
5.28 KB |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
.CodeRay {
font-family: 'Courier New', 'Terminal', monospace;
padding: 3px 5px;
overflow: auto;
font-size: 12px;
margin: 12px 0;
background-color: #4B4B4B;
border: 1px solid si... |
|
test |
12 lines
of
Ruby
|
408 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class AdvisorCompany < Company
include AdvisorCompany::AdvisorAffiliations
include AdvisorCompany::AdvisorDowngrade
include AdvisorCompany::AdvisorBranding
include AdvisorCompany::Advis... |
|
rails 4 live streaming redis pubsub |
24 lines
of
Ruby
|
591 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
require 'reloader/sse'
class BrowserController < ApplicationController
include ActionController::Live
def index
response.head... |
|
testing |
34 lines
of
Plain text
|
1.48 KB |
Show |
Edit |
Expand |
1
2
3 |
cloning the repo at /var/www/hpusher/releases/20121105163337/projects/tweli/327_read_more_policy/86. git_url is git@github.com:bigbinary/tweli.git. project_name is tweli
git clone git@github.com... |
|
objective-c test |
13 lines
of
C
by
stackoverflow
|
262 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7 |
#import "MyObject.h"
@implementation MyObject
- (NSString *) testMethod: (NSNumber *) theNumber withInt: (NSInteger) theInteger {
if( [theNumber integerValue] == theInteger) {
return ... |
|
feskol |
9 lines
of
C
by
ciuvv
|
123 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
#include <stdio.h>
enum rakamlar {f0,f1,f2=-1} rakam;
int main()
{
printf("%d %d %d\n",f0,f1,f2);
return 0;
} |
|
c# |
5 lines
of
C++
|
114 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5 |
class Test {
public static Main(string[] args) {
System.Console.WriteLine("hello world!");
}
} |
|
haml |
11 lines
of
HAML
|
172 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11 |
!!!
%html
%head
%title Hello, Haml!
%body
#header
%h1 Hello, Haml!
#content
%p
I use Haml
%span.version= Haml::VERSION |
|