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
print "Installing divvy to /usr/local/bin .. \n"; | |
print "Downloading ..\n"; | |
print `curl https://github.com/katzgrau/divvy/raw/master/divvy > /tmp/divvy`; | |
print "chmod-ing to 755 ..\n"; | |
print `chmod 755 /tmp/divvy`; | |
print "Moving to /usr/local/bin ..\n"; | |
print `mv /tmp/divvy /usr/local/bin/`; | |
print "Divvy Installed! Try divvy --help\n"; |
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
print "Installing stalk to /usr/local/bin .. \n"; | |
print "Downloading ..\n"; | |
print `curl https://github.com/katzgrau/stalk/raw/master/stalk > /tmp/stalk`; | |
print "chmod-ing to 755 ..\n"; | |
print `chmod 755 /tmp/stalk`; | |
print "Moving to /usr/local/bin ..\n"; | |
print `mv /tmp/divvy /usr/local/bin/`; | |
print "stalk installed! Try stalk --help\n"; |
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
print "Installing chip to /usr/local/bin .. \n"; | |
print "Downloading ..\n"; | |
print `curl https://raw.github.com/katzgrau/chip/master/chip > /tmp/chip`; | |
print "chmod-ing to 755 ..\n"; | |
print `chmod 755 /tmp/chip`; | |
print "Moving to /usr/local/bin ..\n"; | |
print `mv /tmp/chip /usr/local/bin/`; | |
print "chip installed! Try chip --help\n"; |
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
# Alias | |
alias njtransit="curl -s 'http://www.njtransit.com/sf/sf_servlet.srv?hdnPageAction=TrainSchedulesFrom' -X POST -d 'selOrigin=105_BNTN&selDestination=130_NJCL&datepicker=`date '+%m%%2F%d%%2F%Y'`&OriginDescription=New+York+Penn+Station&DestDescription=Red+Bank' | grep -oP '\d?\d:\d\d( [A|P]M)?' | awk '{ if(NR % 2 == 1) printf \"%s %s\", \$0, \" / \"; else print \$0 }'" | |
# Output (latest schedule) | |
# Departure / Arrival | |
$ njtransit | |
04:30 AM / 05:46 AM | |
05:32 AM / 06:55 AM |
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 | |
/** | |
* Search an array for nested property values | |
* @param array $array The array you're searching over, perhaps something like | |
* $people = array( | |
* array('name' => 'Bill', 'residence' => array('state' => 'NJ', 'zip' => '07701')), | |
* array('name' => 'Anne', 'residence' => array('state' => 'NJ', 'zip' => '07850')), | |
* array('name' => 'Evan', 'residence' => array('state' => 'NY', 'zip' => '10001')) | |
* ) | |
* @param array $filters An associative array of filters to match, like |
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 | |
/* Special Streetfight Widget */ | |
function infinite_register_widgets() { | |
register_widget('Infinite_Featured_Post'); | |
} | |
add_action( 'widgets_init', 'infinite_register_widgets' ); | |
/** |
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
<html> | |
<head> | |
<script src="//cdn.broadstreetads.com/init-2.min.js" async></script> | |
<script>window.broadstreet = window.broadstreet || { run: [] };</script> | |
<script> | |
// Load the Prebid Javascript Lib | |
(function () { | |
var d = document; | |
var pbs = d.createElement("script"); | |
pbs.type = "text/javascript"; |
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 | |
/** | |
* The Header template for our theme | |
* | |
* Displays all of the <head> section and everything up till <div id="main"> | |
* | |
* @package WordPress | |
* @subpackage Twenty_Thirteen | |
* @since Twenty Thirteen 1.0 | |
*/ |