Welcome!

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

Ruby regexp tests33 lines of Ruby by murphy < jacius585 BytesShowEditExpand
1
2
3
4
5
6
7
8
9
10
11
%r<this is a valid regexp>e.to_s
# That's right.
 
%r(this one is valid, but...()
it actually closes right here:)i.inspect
# Tricky.
 
%r[this is valid too]x.clone
# Correct.
 
%r.and thi...
SQL test15 lines of SQL by anonymous812 BytesShowEditExpand
1
2
3
IF( WEEKDAY( DATE_ADD( NOW( ) , INTERVAL +10 HOUR ) ) >3, (
  YEARWEEK( FROM_UNIXTIME( orddateshipped ) ) = YEARWEEK( DATE_ADD( NOW( ) , INTERVAL +10 HOUR ) )
  AND WEEKDAY( FROM_UNIXTIME( orddat...
Delphi HW4 lines of Delphi 54 BytesShowEditExpand
1
2
3
4
program test;
begin
  writeln ('Hello world');
end.
polytek homeworkexe solution46 lines of Ruby by hammackj4 KBShowEditExpand
1
2
3
4
5
6
7
8
9
#!/usr/bin/env ruby

#hammackj, hammackj.com
#usage ./exploit.rb | nc ip homework.exe 1974

require 'socket'

#2048 Pattern
pattern = "Aa0Aa1Aa2Aa3Aa4Aa5Aa6Aa7Aa8Aa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7...
PHP encrypt decrypt69 lines of PHP by Caiwangqin1.6 KBShowEditExpand
1
2
3
4
5
6
7
8
9
10
11
<?php
function getkeyiv($key_size, $iv_size, $key, $iv='') {
  if ($iv == '') {
    $iv = 'OpenSSL for Ruby rulez!';
  }

  $iv = substr($iv,0,$iv_size);
  
  $gen = '';
  do  {
    $gen = $gen.md5...
Ruby encrypt decrypt61 lines of Ruby by Caiwangqin2.4 KBShowEditExpand
1
2
3
4
5
=begin
#==============================================================================
# RMVX - ModifMessageBox
#--------------------------------------------------------------------------
# Aut...
test48 lines of RHTML by spencerlim1.8 KBShowEditExpand
1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="e...
Test XML8 lines of XML by Tiger170 BytesShowEditExpand
1
2
3
4
5
6
7
8
<data>
<key>f12eb9fad3e175369a66b16cb97253c9</key>
  <action>user_login</action>
  <user>
    <login>jsmith</login>
    <password>topsecret</password>
  </user>
</data>
samplerrrr19 lines of Ruby 931 BytesShowEditExpand
1
2
3
4
# Examples:
      #     validates_file_format_of :field, :in => ["gif", "png", "jpg"]
      #     validates_file_format_of :field, :in => ["image/jpeg"]
      def validates_file_format_of(*attrs...
Using closure variables110 lines of diff by murphy3.5 KBShowEditExpand
1
2
3
4
5
6
7
diff --git a/lesson09/index.html b/lesson09/index.html
index b3b15d9..3cfce0a 100644--- a/lesson09/index.html+++ b/lesson09/index.html@@ -351,26 +351,27 @@function Star(startingDista...