Skip to content

Instantly share code, notes, and snippets.

View ethan605's full-sized avatar

Thanh Nguyen ethan605

View GitHub Profile
#!/bin/bash
function usage() {
echo "Usage: init <command>"
echo "Usage: <command> '<commit>' [-i, --ignore-ticket]"
}
if [ $# -eq 0 ] || [ $# -gt 2 ]; then
usage
exit 1
@ethan605
ethan605 / mc_crawler.rb
Created December 12, 2012 03:58
Multimedia Communication Crawler
class McCrawler
def request_param(page)
path = '/a/block_competition_matches?'
callback_params = {
page: (page==0 ? 0 : page.to_s),
round_id: 17950.to_s,
outgroup: "",
view: 2
}
params = {