This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* DOMNodeListIterator | |
* | |
* Prior to PHP 5.3, DOMNodeList is not iterable. This solves that. | |
* Requires PHP SPL extension (for interface Iterator) | |
* | |
* Usage: | |
* $nodeIter = new DOMNodeListIterator($instanceOfClassDOMNodeList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int putchar ( int ) ; | |
int | |
main ( | |
void ) { | |
{ { { { | |
{ { { { { | |
{ { { { { { | |
{ { { { { { { | |
{ int z ; for ( z = | |
002354l / 000644l / 000132l / 000322l / 000374l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias sudo='A=`alias` sudo ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
char*S[99],P[999],T[999],**s=S,*p=P,*t=T,c,x;main(){read(0,p,999);for(;c=*p;++p)c^93?x?:c^91?c^62?c^60?c^46?c^45?c^44?c^43?:++*t:(*t=getchar()):--*t:putchar(*t):t--:t++:*t?*(s++)=p:++x:x?--x:*t?p=*(s-1):--s;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// helper func for Cherokee webserver's hidden downloads module | |
function secure_download ($prefix, $url, $secret) { | |
$time = sprintf('%08x', time()); | |
return "$prefix/".md5($secret.$url.$time)."/$time$url"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(undefined) { | |
// Create a length 624 array to store the state of the generator | |
var MT = [], | |
index = 0, | |
init = false; | |
// Initialize the generator from a seed | |
function initializeGenerator(seed) { | |
MT[0] = seed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (toString) { | |
return { | |
isFunction : _partial(_partial), | |
isArray : _partial([]), | |
isObject : _partial({}), | |
isString : _partial(""), | |
isRegExp : _partial(/./), | |
isNumber : _partial(0), | |
isArguments : _partial(arguments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () { | |
var dayNames = ["Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur"], | |
monthAbbr = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; | |
// ddd, dd MMM yyyy HH:mm:ss GMT | |
Date.prototype.rfc1123 = function () { | |
var self = this, | |
getVal = function (name) { | |
var val = "" + self["get" + name](); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
↑ 0x2191 | |
↓ 0x2193 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var p=process,n=require('net'),a=p.argv.slice(2),s=n.Stream();s.connect.apply(s,a);s.pipe(p.stdout);p.openStdin().pipe(s); |
OlderNewer