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 mixcloudify (startHour) { | |
var TALK_BREAK_MINIMUM = 4, // minimum length to insert a talk break | |
showDate; | |
function showTime () { | |
var start = startHour.split(":").map(function (item) { | |
return padNumber(item); | |
}); | |
return Date.parse([ |
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 endTimesFromTrackLength () { | |
function padNumber (i) { | |
i = "" + i; | |
if (i.length == 1) return "0" + i; | |
return i; | |
} | |
function timestampToSecs (dateString) { | |
return Date.parse(dateString.replace(" ", "T") + "-07:00") / 1000; |
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 realTimeTrackTime () { | |
function padNumber (i) { | |
i = "" + i; | |
if (i.length == 1) return "0" + i; | |
return i; | |
} | |
function updatePlaytime () { | |
var d = new Date() | |
window.requestAnimationFrame(function () { |
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 subl { | |
if [ -n "$1" ]; then | |
command subl $1 | |
elif [ -f *.sublime-project ]; then | |
command subl *.sublime-project | |
else | |
command subl . | |
fi | |
} |
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>, |
OlderNewer