This file contains hidden or 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
/* | |
* jQuery getFeed Plugin 1.0 | |
* | |
* Tested in jQuery 1.4.2 | |
* | |
* Copyright 2010, Rowan Manning (http://www.rowanmanning.co.uk/) | |
* Dual licensed under the MIT or GPL Version 2 licenses | |
*/ | |
(function($){ | |
//============================================================ |
This file contains hidden or 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 | |
# DROP THIS IN A GIT REPO THEN CALL FROM THE COMMAND LINE | |
# ask for a version (tag) to build (if not provided) | |
if [ -z $1 ] | |
then | |
echo "Available versions:"; | |
echo $(git tag) | sed s/\ /,\ /g; | |
echo "Which version would you like to build?"; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>CSS Testing</title> | |
</head> | |
<body id="top"> | |
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
This file contains hidden or 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 | |
/** | |
* Get an RSS or ATOM feed. | |
* @param string $url The URL of the feed to get. | |
* @param integer $count [optional] The number of entries to get. Default value is 10. | |
* @param string $api_key [optional] The Google AJAX Feed API key. Default value is NULL. | |
* @param string $language [optional] The language to retrieve the feed in. Default value is NULL. | |
* @return array Returns an array representing the feed. | |
*/ |
This file contains hidden or 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 | |
/** | |
* PHP Color Class | |
* | |
* An simple colour class for PHP. Note: in documentation the 'colour' spelling is intentional. | |
* | |
* @subpackage Graphics | |
* @author Rowan Manning (http://rowanmanning.co.uk/) | |
* @copyright Copyright (c) 2011, Rowan Manning | |
* @license Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) |
This file contains hidden or 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
/* | |
* jQuery caret Plugin 0.2 | |
* | |
* Tested in jQuery 1.4.2 | |
* | |
* Copyright 2010, Rowan Manning (http://www.rowanmanning.co.uk/) | |
* Dual licensed under the MIT or GPL Version 2 licenses | |
*/ | |
(function($){ | |
//============================================================ |
This file contains hidden or 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
/* | |
* jQuery expandAbbr Plugin 0.1 | |
* | |
* Tested in jQuery 1.4.2 | |
* | |
* Copyright 2010, Rowan Manning (http://www.rowanmanning.co.uk/) | |
* Dual licensed under the MIT or GPL Version 2 licenses | |
*/ | |
(function($){ | |
//============================================================ |
This file contains hidden or 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
javascript:(function(d){s=d.createElement('script');s.src='http://example.com/example.js';d.body.appendChild(s);})(document); |
This file contains hidden or 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
current_dir=`pwd`; | |
cd ~/Library/Application\ Support/Espresso/Sugars/; | |
echo "Installing Sugars:"; | |
if [ ! -d ./CSS3.sugar ]; then | |
echo "Installing CSS3.sugar..."; | |
git clone -q git://github.com/minimalweb/CSS3.sugar.git ./CSS3.sugar; | |
else | |
echo "CSS3.sugar already installed, attempting update..."; |
This file contains hidden or 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 | |
/** | |
* Get the relative time between two timestamps. | |
* | |
* @access public | |
* @param integer|string $time The date or timestamp that represents the time we're comparing to. | |
* @param integer|string $comparison_time [optional] The date or timestamp we want comparisons to be relative to. Defaults to the current timestamp. | |
* @param boolean $return_array [optional] Whether to return the relative time as an array of components rather than a string. Default value is FALSE. | |
* @return string Returns the amount of time between the two timestamps as a string or an array if $return_array is TRUE. |
OlderNewer