Welcome! This page is using CodeRay 1.1.2.
We currently have
3049 rays
in the database.
You can add a
New Ray
or browse the posted rays by pages.
some cpp code |
18 lines
of
Python
|
235 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 |
// function example
using namespace std;
int addition (int a, int b)
{
int r;
r=a+b;
return (r);
}
int main ()
{
int z;
z = addition (5,3);
cout << ... |
|
gg |
19 lines
of
Java
|
613 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8 |
Sheets("Wochenplan").Select
Dim Datum1 As String
Datum1 = Range("B1").Value
Dim Datum2 As Date
Datum2 = DateValue(Datum1)
Dim Dateiname As String
Dateiname = "wo... |
|
kjgf |
11 lines
of
Ruby
by
tudf
|
209 Bytes |
Show |
Edit |
Expand |
1
2
3
4
5
6
7
8
9 |
def p text = '', color = :reset
puts "Hello, world#{COLORS[color]}#{text}#{COLORS[:reset]}"
end
class MyClass
def initialize(*args)
@args = args... |
|
Bash |
6 lines
of
C
|
625 Bytes |
Show |
Edit |
Expand |
1
2 |
root@smtp1# wget http: |
|
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... |
|