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 | |
if (isset($_GET['errors'])) { error_reporting(E_ALL); } else { error_reporting(0); } | |
// Requires the Universal Feed Writer from http://www.phpclasses.org/browse/package/4427.html | |
include("FeedWriter.php"); | |
define('FIREWALLED', true); | |
define('FIREWALL_ROOT', 'firewall/'); | |
include(FIREWALL_ROOT.'config/db.php'); |
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
<!-- Microformats hCard Example. --> | |
<!-- By Ben Ward - http://benward.me http://twitter.com/benward --> | |
<!-- Re: http://twitter.com/joelevi/statuses/3897539999 --> | |
<!-- See hCard: http://microformats.org/wiki/hcard#type_subproperty_values --> | |
<!-- Initial, incorrect Example: --> | |
<span class="tel voice work pref">+1-866-461-7001</span> | |
<!-- |
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
Index: attrs.h | |
=================================================================== | |
RCS file: /cvsroot/tidy/tidy/src/attrs.h,v | |
retrieving revision 1.29 | |
diff -r1.29 attrs.h | |
325a326 | |
> #define attrGetCLASS( nod ) TY_(AttrGetById)( nod, TidyAttr_CLASS ) | |
Index: parser.c | |
=================================================================== | |
RCS file: /cvsroot/tidy/tidy/src/parser.c,v |
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 | |
$aOutput = array(); | |
$aLines = explode("\n", file_get_contents($argv[1])); | |
$aKeys = explode("\t", array_shift($aLines)); | |
foreach($aLines as $line) { | |
if (!trim($line)) { |
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
/** | |
# "Outlook Mac Access" CSS | |
A user CSS override to restyle Outlook Web Access 2003; to make it more Mac-like. | |
Use this file with Fluid <http://fluidapp.com/>, or another Webkit renderer, to transform | |
OWA into something more palatable. | |
By Ben Ward <http://benward.me> | |
## Status: |
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
<!-- geo microformat: http://microformats.org/wiki/geo --> | |
<p class="geo"> | |
<span class="latitude">1.30023</span>, | |
<span class="longitude">0.523323</span> | |
</p> | |
<!-- adr microformat: http://microformats.org/wiki/adr --> | |
<p class="adr"> | |
<span class="street-address">701 First Avenue</span>, | |
<span class="locality">Sunnyvale</span>, |
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
<!-- The different ways of marking up dates and times with microformats --> | |
<!-- Microformats are quite flexible when it comes to marking up dates in valid | |
HTML4. The value-class-pattern allows you to mark-up different parts of the | |
date, providing tool-tip context or nesting the data silently alongside a | |
custom format. | |
Date formatting in microformats no-longer requires using the `<abbr>` | |
element. --> | |
<!-- Core requirement for dates in microformats: The date must be available in an |
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
/* Use this to cause a function to fire no more than once every 'ms' milliseconds. | |
For example, an expensive mousemove handler: | |
$('body').mouseover(ratelimit(function(ev) { | |
// ... | |
}, 250)); | |
*/ | |
function ratelimit(fn, ms) { | |
var last = (new Date()).getTime(); |
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
#!/bin/sh | |
# | |
# git-svn-diff | |
# Generate an SVN-compatible diff against the tip of the tracking branch | |
TRACKING_BRANCH=`git config --get svn-remote.svn.fetch | sed -e 's/.*:refs\/remotes\///'` | |
REV=`git svn find-rev $(git rev-list --date-order --max-count=1 $TRACKING_BRANCH)` | |
git diff --no-prefix $(git rev-list --date-order --max-count=1 $TRACKING_BRANCH) $* | | |
sed -e "s/^+++ .*/& (working copy)/" -e "s/^--- .*/& (revision $REV)/" \ | |
-e "s/^diff --git [^[:space:]]*/Index:/" \ | |
-e "s/^index.*/===================================================================/" |
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
// Stupid simple bookmarklet function to duplicate the current page in a new window. Boom. | |
javascript:(function(){window.open(window.location.href)})(); |
OlderNewer