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.

Page 126, 10 entries

SQL 26 lines of SQL by Daniel 689 Bytes Show Edit Expand
1
2
3
4
5


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNEC...
Activerecord abstrat class 19 lines of Ruby by Iain McNulty 404 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
require 'sqlite3'
require 'active_record'

class Alcoholic < ActiveRecord::Base
  self.abstract_class = true
  establish_connection adapter:  "sqlite3",  database: "../../db/brewing.sqlite"

...
Ember 4 lines of JavaScript by Ember 82 Bytes Show Edit Expand
1
2
3
4
import Ember from 'ember';
export default Ember.Component.extend({
  // ...
});
Bash as python 6 lines of Python by anon 151 Bytes Show Edit Expand
1
2
3
4
5
6
#!/bin/sh
REPOS="$1"
REV="$2"

# The following should be a one-liner (no line breaks).
# It's safest to use the full path to the ruby interpreter.
folio.xml 42 lines of C 1.69 KB Show Edit Expand
1
2
3
4
<folio version="1.7.0" lastUpdated="2012-08-16T19:52:49Z" id="[folder name]" orientation="portrait">
  <metadata>
    <description>[Enter article description here]</description>
    <magazineTitle>[E...
pkgProperties 21 lines of C 629 Bytes Show Edit Expand
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<pkgProperties xmlns="http://ns.adobe.com/ucf/1.0/">
<package/>
<entries>
<entry path="1700_talk_singer_120813_v.html">
<prop key="datetime">2012-08-16T1...
Compile Error 21 lines of C by Nobody 278 Bytes Show Edit Expand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifdef _AAA_H_
#undef _AAA_H_    //?
#endif
#include <stdio.h>
#include <iostream>
using namespace std;
// ^he is just kidding!

int main()
{
    //incorrect syntax
    typeid
asm
_asm...
Foo 1 line of diff 24 Bytes Show Edit Expand
1
gem install heroku-bench
xml 11 lines of Ruby 402 Bytes Show Edit Expand
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >...
Ruby 1 line of Ruby by SB&T 18 Bytes Show Edit Expand
1
puts 'Hello world'

Page 126, 10 entries