Skip to content

Instantly share code, notes, and snippets.

View kcrwfrd's full-sized avatar

Kevin Crawford kcrwfrd

View GitHub Profile
@jameshartig
jameshartig / ioCrawler.go
Last active September 19, 2018 00:23
Google I/O 2014 redeem easter egg crawler
//before running make sure you setup a GOPATH env variable and ran: "go get code.google.com/p/go.net/html"
//to run: go run ioCrawler.go -url="http://developers.google.com/"
//also try http://developer.android.com/index.html
//output goo.gl links to try and redeem will be sent to foundLinks.txt
//by the way there's an artificial "rate limit" in func crawler, you can lower that or raise it as you wish
//You can also comment out the onlyGoogleRegex code if you don't want to limit to google.com/youtube
//if you're getting I/O timeout errors, then you might need to increase the timeouts on line 231
@apkostka
apkostka / GJMap Wrapper
Created June 5, 2013 16:15
Wrapper for Google maps that creates markers from a JSON list. Relies on the google maps API (http://maps.googleapis.com/maps/api/js?sensor=false&v=3&language=en). Sample format is given for JSON objects.
var poi = [
{
name: 'name',
address: 'address',
phone: 'phone',
lat: 0.000,
lng: -0.000,
category: 'category',
icon: 'path/to/icon'
}
@paulsturgess
paulsturgess / mpd.md
Last active December 16, 2015 06:59
MPD On OSX

Installation

brew install mpd

Config

~/.mpdconf

port "6600"