Welcome! This page is using CodeRay 1.1.0 (beta).

We currently have 2213 rays in the database.
You can add a New Ray or browse the posted rays by pages.

Page 1, 10 entries

Makefile 9 lines of diff by :D 133 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
# Variables
cc = g++
targets = hello

# Compilation
.PHONY: all
all: $(targets)
hello: hello.cpp
    $(cc) hello.cpp -o hello
A simple ruby module with regexps 8 lines of Ruby 207 Bytes Show Edit Expand
1
2
3
4
5
6
7
module Wiki
  module RegExp
    COMMON_NAME = /\A[a-z][0-9a-z_-]*[0-9a-z](\.[0-9a-z][0-9a-z_-]*)*\Z/i
    USER_NAME = COMMON_NAME

    EMAIL = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i
  ...
testC 6 lines of C 213 Bytes Show Edit Expand
1
2
3
4
5
6
$ mv /home/oper/cyber-api.tar.bz2 .; bunzip2 cyber-api.tar.bz2; tar xf cyber-api.tar; rm cyber-api.tar

# SHARED_DIRS
$ ln -s ../../shared/log log
$ ln -s ../../shared/tmp tmp
$ ln -s ../../sh...
jsonxxx 1 line of JSON by xxxx 218 Bytes Show Edit Expand
1
{"confirmation_sent_at":"2014-10-13T22:08:14+00:00","confirmed_at":"2014-10-13T22:08:29+00:00","created_at":"2014-10-13T22:08:15+00:00","current_sign_in_at":"2014-12-24T06:16:28+00:00","current_sig...
jsonxxx 1 line of JSON 227 Bytes Show Edit Expand
1
{"confirmation_sent_at"=>"2014-10-13T22:08:14+00:00", "confirmed_at"=>"2014-10-13T22:08:29+00:00", "created_at"=>"2014-10-13T22:08:15+00:00", "current_sign_in_at"=>"2014-12-24T06:16:28+00:00", "cur...
test config 37 lines of Python 1.16 KB Show Edit Expand
1
2
3
4
5
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server.     #
#                                            #
# Thi...
result 37 lines of JSON 1003 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
{
    "hits": [
        {
            "statement_id": 47,
            "result": {
                "stock": {
                    "volume": 39.21,
                    "low": 1.34827,
       ...
Testing 70 lines of Delphi 2.89 KB Show Edit Expand
1
2
3
4
5
6
7
Imports nsoftware.IPWorks
Imports Newtonsoft.Json

Module MainModule

    Private ReadOnly Usage As String = "Copyright (C) 2012-2013 AnyCo Studios - All Rights Reserved" + vbCrLf +
    vbCrL...
Anothertest 28 lines of Delphi 662 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#Region "Timer Code"

    Private Sub ClockTimer_Tick(Sender As Object, E As EventArgs) Handles ClockTimer.Tick

        ClockLabel.Text = Now.ToString
        StatusBar.Refresh()

    End S...
Testing 28 lines of C 662 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
#Region "Timer Code"

    Private Sub ClockTimer_Tick(Sender As Object, E As EventArgs) Handles ClockTimer.Tick

        ClockLabel.Text = Now.ToString
        StatusBar.Refresh()

    End S...

Page 1, 10 entries