Skip to content

Instantly share code, notes, and snippets.

@alagappanr
alagappanr / android_top_games.py
Created May 2, 2014 18:27
A simple python script that scrapes the Android Top Charts page to get the list of top 20 games in each of the "Top Free", "Top Paid" and "Top Grossing" categories and write it into a file as json. Repeats the process every 1 hour.
#!/usr/bin/env python
"""
# Program to ping the Android Top Charts page every once
# in a while to get the top games and store it into a
# JSON file for processing later
# Crude version of code. Requires cleaning up.
# Author: Alagappan Ramu
# Version: 0.1
@wweic
wweic / code_contest_template.cpp
Created October 9, 2012 07:34
Code template for programming contest
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@JackDanger
JackDanger / git-remove-history.sh
Created August 19, 2010 22:06
remove large binary files from git history
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
#
# retrieved from: http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
#