Skip to content

Instantly share code, notes, and snippets.

@jadb
jadb / cli.args.php
Created October 25, 2012 01:25
Parse PHP CLI arguments
http://pwfisher.com/nucleus/index.php?itemid=45
This command line option parser supports any combination of three types of options (switches, flags and arguments) and returns a simple array.
<?php
/**
* CommandLine class
*
* @package Framework
*/
/**
@jadb
jadb / watchr.rb
Created October 3, 2012 00:06
CakePHP + Watchr
###
#
# Watchr Configuration.
#
# This is used to watch the entire application's folder for modifications to
# models, controllers, tests, configuration files and logs. For logs, notify
# with log file's name. For the rest, run appropriate test(s) and notify of
# results. Test results also appear on the terminal window where you launched
# `watchr`.
#
/**
* GitTip for jQuery
*
* Originally inspired by:
* - TheChangelog [http://thechangelog.com]
*
* Requirements:
* - jQuery 1.3.2+ (http://jquery.com)
* - jQuery tipTip plugin (http://code.drewwilson.com/entry/tiptip-jquery-plugin)
*