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.

Page 149, 10 entries

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
#include <iostream>
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

# Comment
class MyClass
  # this is a silly class
  def initialize(*args)
    @args = args...
Bash 6 lines of C 625 Bytes Show Edit Expand
1
2
root@smtp1# wget http://rpms.adiscon.com/v7-stable/epel-6/x86_64/RPMS/rsyslog-7.2.1-1.el6.x86_64.rpm \
 http://rpms.adiscon.com/v7-stable/epel-6/x86_64/RPMS/rsyslog-libdbi-7.2.1-1.el6.x86_64.rpm \...
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 with parameters
$url = <<<EOF
$address."?".$parameters
EOF;
 
//build credentials string
$credentials = $username.":".$password;
 
//Create HTTP request
$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
    # SSE expects the `text/event-stream` content type
    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...

Page 149, 10 entries