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
#import "AFNetworking.h" | |
#import "TFHpple.h" | |
NSString *baseURLString = @"http://gd2.mlb.com/components/game/mlb/year_2013/month_06/day_01/gid_2013_06_01_wasmlb_atlmlb_1/"; | |
NSMutableArray *files = [@[] mutableCopy]; | |
NSMutableArray *dirs = [@[] mutableCopy]; | |
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:baseURLString]]; | |
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; |
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
# Add this to line 86 on git-achievements | |
# ruby basecamp.rb "`git config user.name`" "$@" "$2" | |
# then create a file called basecamp.rb with the rest of this file in it | |
#!/usr/bin/env ruby | |
require 'rubygems' rescue nil | |
require 'broach' |
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
#!/usr/bin/ruby | |
# | |
# I deliberately didn't DRY /usr/local references into a variable as this | |
# script will not "just work" if you change the destination directory. However | |
# please feel free to fork it and make that possible. | |
# | |
# If you do fork, please ensure you add a comment here that explains what the | |
# changes are intended to do and how well you tested them. | |
# | |
# 30th March 2010: |
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
delegate = Object.new | |
def delegate.netServiceBrowserWillSearch(browser) | |
puts "search commencing!" | |
end | |
def delegate.netServiceBrowser(browser, didFindService:service, moreComing:more) | |
# this never calls regardless of the services on the network. | |
puts "Found service #{service.name}." | |
end |
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
# | |
# Forked from http://gist.github.com/90062 | |
# | |
# Drop this into ~/.bash_profile: | |
# Usage: httpdump <interface> | |
# Example: httpdump en0 | |
# | |
function httpdump() { sudo tcpdump -i $1 -n -s 0 -w - | grep -a -o -E "Host\: .*|GET \/.*|POST \/.*";} | |
# All the above tested only on OS X. |