Welcome!
We currently have 612 rays in the database.
You can add a New Ray or browse the posted rays by pages.
| SQL | 1 line of SQL by Kaktusyaka | 21 Bytes | Show | Edit | Expand |
|
| Code Code Code | 8 lines of Ruby by Eric | 57 Bytes | Show | Edit | Expand |
1
2
3
4
5
6
7
8
|
x == !false
y = x
puts x
if x
puts "blank"
end |
|
| h | 1 line of HTML | 665 Bytes | Show | Edit | Expand |
|
<object width="500" height="375"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6885... |
|
| Test XML | 11 lines of XML by Devether | 230 Bytes | Show | Edit | Expand |
1
2
3
4
5
6
7
8
9
|
<?xml version="1.0" encoding="UTF-8"?>
<STRUCTURE Name="test">
<items>
<item num="01">
<name>My Item 01</name>
</item>
<item num="02">
<name>My Item 02</name>
... |
|
| SQL Test | 2 lines of SQL by M K | 85 Bytes | Show | Edit | Expand |
1
2
|
SELECT * FROM `db.table` WHERE `uid`=1;
UPDATE `db.table` SET `uid=2` WHERE `uid`=1; |
|
| qq | 1 line of Ruby | 9 Bytes | Show | Edit | Expand |
|
| Doctrine_Template_MultiApplication (PHP) | 46 lines of PHP by fruit | 998 Bytes | Show | Edit | Expand |
1
2
3
4
5
6
7
8
9
10
11
12
|
<?php
/**
* @subpackage doctrine
*/
class Doctrine_Template_MultiApplication extends Doctrine_Template
{
/**
* Array of Sortable options
*
* @var string
... |
|
| Test | 1 line of HTML | 22 Bytes | Show | Edit | Expand |
|
| Some ROR Code | 12 lines of Ruby by Fred Flintstone | 293 Bytes | Show | Edit | Expand |
1
2
3
4
5
6
7
8
9
|
def successful_login(user)
session[:logged_in] = true
current_user = user
redirect_to(admin_path)
end
def failed_login(message)
session[:logged_in] = false
sessio... |
|
| PHP | 26 lines of PHP by Me :) | 260 Bytes | Show | Edit | Expand |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
class Test {
private static $instance;
private function __construct() {
}
public static function instance() {
if($instance != null) {
$instance = new Test();
... |
|