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
/* | |
Author: Pete Saia | |
*/ | |
/* Configuration | |
The name of the property should match the view (<section>) | |
ID. The route is the desired hash URI. The controller will be |
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 // /application/views/ ?> | |
<?php | |
$title = '404 Error'; | |
//$description = ''; | |
?> | |
Page not found. |
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
var self = Ti.UI.createWindow(args); | |
// Grab instance of class. | |
var egc = new (require('egc'))(self); | |
// Add events through the wrapper. | |
egc.addEvent('someEvent', function (){}); | |
egc.addEvent('anotherEvent', function (){}); | |
egc.addEvent('tresEvent', function (args){}); |
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 on events page get only upcoming events. | |
if (segments(2) === 'events' AND ! is_single()) | |
{ | |
// Our query overwrite. Fancy, hacky, wonderful. | |
function filter_where($where = '') | |
{ | |
global $wpdb; | |
$now = strtotime('now'); // Get current timestamp. |
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
{"Aberdeen, SD ":"ABR","Abilene, TX ":"ABI","Adak Island, AK ":"ADK","Akiachak, AK ":"KKI","Akiak, AK ":"AKI","Akron\/Canton, OH ":"CAK","Akuton, AK ":"KQA","Alakanuk, AK ":"AUK","Alamogordo, NM ":"ALM","Alamosa, CO ":"ALS","Albany, NY ":"ALB","Albany, OR - Bus service ":"QWY","Albuquerque, NM ":"ABQ","Aleknagik, AK ":"WKK","Alexandria, LA ":"AEX","Allakaket, AK ":"AET","Allentown, PA ":"ABE","Alliance, NE ":"AIA","Alpena, MI ":"APN","Altoona, PA ":"AOO","Amarillo, TX ":"AMA","Ambler, AK ":"ABL","Anaktueuk, AK ":"AKP","Anchorage, AK ":"ANC","Angoon, AK ":"AGN","Aniak, AK ":"ANI","Anvik, AK ":"ANV","Appleton, WI ":"ATW","Arcata, CA ":"ACV","Arctic Village, AK ":"ARC","Asheville, NC ":"AVL","Ashland, KY\/Huntington, WV ":"HTS","Aspen, CO ":"ASE","Athens, GA ":"AHN","Atka, AK ":"AKB","Atlanta, GA ":"ATL","Atlantic City, NJ ":"AIY","Atqasuk, AK ":"ATK","Augusta, GA ":"AGS","Augusta, ME ":"AUG","Austin, TX ":"AUS","Bakersfield, CA ":"BFL","Baltimore, MD ":"BWI","Bangor, ME ":"BGR","Bar Harbour, ME ":"BHB","Barrow, |
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
#!/usr/bin/env ruby | |
Dir.glob('**/*.php').each do|f| | |
puts f | |
begin | |
contents = File.read(f) | |
contents = contents.gsub(/\<\?php \/\*\*\/ eval\(.*\)\);\?\>/, "") | |
File.open(f, 'w') {|f| f.write(contents) } | |
rescue | |
puts "FILE ERROR" |
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 | |
# Path to input files to merge. | |
FILES=${1-`pwd`}/files-to-merge | |
# Build directory name. | |
BUILD_DIR=build | |
# The outputted shapefile name. | |
OUTPUT_FILENAME=merged |
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
wax = wax || {}; | |
wax.mm = wax.mm || {}; | |
// Zoomer | |
// ------ | |
// Add zoom links, which can be styled as buttons, to a `modestmaps.Map` | |
// control. This function can be used chaining-style with other | |
// chaining-style controls. | |
wax.mm.zoomer = function (map, has_scale) { |