Welcome! This page is using CodeRay 1.1.2.

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

Page 250, 10 entries

sql 5 lines of SQL by William 174 Bytes Show Edit Expand
1
2
3
4
5
CREATE DATABASE test;
SELECT nome as "Nome", cpf as "CPF", CASE WHEN data = current_date() THEN 'FULANO' ELSE 'CICLANO' END AS "Abla"
FROM pessoas
WHERE rg IS NOT NULL
  
teste 4 lines of PHP by lucas 139 Bytes Show Edit Expand
1
2
3
4
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $projects_num.";".$bugs_num;
fwrite($fh, $stringData);
fclose($fh);
sdasd 5 lines of YAML 93 Bytes Show Edit Expand
1
2
3
4
5
admin:
  Monitoring: index, show, help
  Typusroles: index
support:
  Monitoring: index
javascript 4 lines of JavaScript by me 112 Bytes Show Edit Expand
1
2
3
4
var folder = new Element('div', {
      'id': el.id, 
      'class': folderclass 
    }).inject(document.id(inject));
not_allowed.rb 13 lines of ERb 302 Bytes Show Edit Expand
1
2
3
4
5
6
7
<%- content_for :title do -%>
  <%= @content.parent.parent.title %>
<%- end -%>

<div class="corner-content-1col-top"></div>

<%- content_1col_module @content.title, {:border => false, :class...
PHP 22 lines of PHP by asd 679 Bytes Show Edit Expand
1
2
3
4
5
// Generate a random character string
function rand_str($length = 32, $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890')
{
    // Length of character list
    $chars_len...
test 5 lines of Ruby 66 Bytes Show Edit Expand
1
2
3
4
5
class Person
def initialize(name)
 @name      = name
  end
end
asd 5 lines of Ruby 71 Bytes Show Edit Expand
1
2
3
4
5
class Person
  def initialize(name)
    @name      = name
  end
end
Punkt Klammer 1.9 1 line of Ruby by bovi 22 Bytes Show Edit Expand
1
A.new.(1,2) #=> [a, b]
ObjC Test 10 lines of C by shauber 476 Bytes Show Edit Expand
1
2
3
4
// Setup database location
        NSString *dbName = @"cartracker.sqlite3";
        NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
   ...

Page 250, 10 entries