1 2 3 4
<?php function innerHTML($node){ $doc = new DOMDocument(); ...
1 2 3 4
<?php function parse_accept_headers($default = 'html'){ $formats = array( ...
PHP Parse HTTP Accept headers
a) define a list of MIME ty...
1 2 3 4
<?php function unique_file($prefix, $suffix){ $file = sprintf('%s.%s', $prefix, $suffix); ...
PHP Generate a numbered file name
Create a file name from the...
1 2 3 4
<?php $id = $_GET['id'] ? $_GET['id'] : 'news'; // default = 'news' $file = "includes/$id.php"; ...
1 2 3 4
<script type="text/javascript" id="target"> var urls = [["url1", "name1"], ["url2", "name2"], ["url3", "name3"]]; ...
1 2 3 4
<?php if (count($argv) != 3) die("Usage: $argv[0] <RSS feed URL> <output dir>\n"); ...
PHP Download all audio enclosur...
Given an RSS feed and an ou...
1 2 3 4
<?php function imagetrim(&$im){ ...
PHP Trim an image vertically
Originally from http://zava...
1 2 3 4
javascript: (function(){ var imgs = document.getElementsByTagName("img"); ...
JavaScript On Zoom all image files from s...
by hubfactor,
March 02, 2008 16:08
I hadn't realised that HTML...
1 2 3 4
javascript: (function(){ var tex=prompt("TeX input:",""); ...
JavaScript On Mathtex bookmarklet
by hubfactor,
February 21, 2008 17:58
Ignoring the second version...
1 2 3 4
<?php $url = 'http://www.example.com/url.php?t=4&p=5&sid=ddf175fd02216cbe9fab9a4b528d7185&hilite=2c23tra#link'; ...
1 2 3 4
Date.prototype.when = function(){ var diff = (new Date() - this) / 1e3; var u = [ "second", "minute", "hour", "day", "week", "month", "year" ]; ...
JavaScript On Beautify JS Date to how rec...
by hubfactor,
February 07, 2008 18:22
Hope the date's not in the ...
1 2 3 4
function odump(object, depth, max){ depth = depth || 0; max = max || 2; ...
JavaScript Recursively dump an object
Given an object, iterate th...
1 2 3 4
<?php require_once("arc/ARC2.php"); // http://arc.semsol.org/ ...
PHP Parse del.icio.us RSS feed
Uses ARC RDF parser from ht...


The equivalent of the non-s...