Skip to content

Instantly share code, notes, and snippets.

import json
import csv
import sys
from datetime import datetime
import os
def make_reader(in_json):
# Open location history data
json_data = json.loads(open(in_json).read())
@sitz
sitz / MacSystemSetup.sh
Last active July 16, 2018 13:02
Setup a fresh Mac with basic dev environment
# Mac software updates
softwareupdate -iaR
# Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wifi-password
@sitz
sitz / SystemSetup.sh
Last active August 29, 2015 14:12
Setup a freshly installed OS
# Linux Mint
# Google Chrome
# Version Control System
sudo apt-get install -y git
sudo apt-get install -y subversion
# Editors
mkdir ~/Applications
code ~/Applications
@sitz
sitz / IPv4Converter.java
Last active December 19, 2015 21:39
IPv4 Converter Util
/**
* Created with IntelliJ IDEA.
* User: sitesh
* Date: 7/17/13
* Time: 9:24 PM
* To change this template use File | Settings | File Templates.
*/
public class IPv4Converter {
private static String longToIp(int ip) {