| Ruby regexp tests | 33 lines of Ruby by murphy < jacius | 585 Bytes | Show | Edit | Expand |
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 test | 15 lines of SQL by anonymous | 812 Bytes | Show | Edit | Expand |
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 HW | 4 lines of Delphi | 54 Bytes | Show | Edit | Expand |
1
2
3
4
|
program test;
begin
writeln ('Hello world');
end. |
|
| polytek homeworkexe solution | 46 lines of Ruby by hammackj | 4 KB | Show | Edit | Expand |
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 decrypt | 69 lines of PHP by Caiwangqin | 1.6 KB | Show | Edit | Expand |
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 decrypt | 61 lines of Ruby by Caiwangqin | 2.4 KB | Show | Edit | Expand |
1
2
3
4
5
|
=begin
#==============================================================================
# RMVX - ModifMessageBox
#--------------------------------------------------------------------------
# Aut... |
|
| test | 48 lines of RHTML by spencerlim | 1.8 KB | Show | Edit | Expand |
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 XML | 8 lines of XML by Tiger | 170 Bytes | Show | Edit | Expand |
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>
|
|
| samplerrrr | 19 lines of Ruby | 931 Bytes | Show | Edit | Expand |
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 variables | 110 lines of diff by murphy | 3.5 KB | Show | Edit | Expand |
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...
|
|