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
// possible ideal for handling sanitation districts | |
var address = $('#addressInput').val(); | |
phl(address, 'http://some.api.url' function(districts) { | |
$.each(districts, function(index, value) { | |
$('ul').append('<li>'+value+'</li>'); | |
}); | |
}); |
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 | |
//Used to fetch Google Calendar Atom feed | |
function getShortCalFeed($feed_url) { | |
$feed_content = file_get_contents($feed_url); | |
$feed = new SimpleXMLElement($feed_content); | |
$namespaces = $feed->getNamespaces(true); | |
//set max entries to loop through and a count var | |
$maxLoop = 4; |
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/bash | |
# This script: | |
# 1) makes a directory at $new_directory_loc. | |
# By default, wordpress/wp-content/ctv/local. | |
# 2) copies files from $files_to_copy $new_directory_loc. | |
# By default, from wordpress/wp-content/ctv/* to wordpress/wp-content/ctv/local/ | |
# 3) replaces all instances of $find_css with $replace_css in the files copied to | |
# $new_directory. By default, the relative css paths are replaced with complete | |
# css paths pointing to our local dev server. |
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/bash | |
# Running this script via ./smartcommit.sh provides a fast way | |
# to selectively include files in an 'svn commit.' | |
# The script can be used as follows: | |
# | |
# 1. Enter ./smartcommit.sh at the command line from within the project's directory | |
# 1. A temporary file containing an 'svn status' list is opened in Vim | |
# 2. Remove any lines specifiying files you DO NOT want to commit | |
# 3. Enter :wq in command mode to save and quit the temporary file |
NewerOlder