Skip to content

Instantly share code, notes, and snippets.

def add_token(ast, token):
if token != "":
ast.append(token)
return ast, ""
def parse_list(code, i):
ast = []
current_token = ""
while i < len(code):
char = code[i]
def add_token(ast, token):
if token != "":
ast.append(token)
return ast, ""
def parse_list(code, i):
ast = []
current_token = ""
while i < len(code):
char = code[i]
@jpvelez
jpvelez / keybase.md
Last active August 29, 2015 14:01
keybase.md

Keybase proof

I hereby claim:

  • I am jpvelez on github.
  • I am jpvelez (https://keybase.io/jpvelez) on keybase.
  • I have a public key whose fingerprint is 2BA5 76B4 B7F4 CF96 A09D 0817 A188 A0D1 B7A5 BDB4

To claim this, I am signing this object:

@jpvelez
jpvelez / boostrap.sh
Last active December 30, 2015 02:39
Shell scripts for bootstrapping a new Mac. Downloads and install dotfiles, unix tools, and native apps.
# Navigate to home folder
cd ~
# Install homesick
sudo gem install homesick
# Download dotfiles repo
homesick clone git://github.com/jpvelez/dotfiles.git
# git clone https://github.com/jpvelez/dotfiles.git
@jpvelez
jpvelez / plot_guassian.py
Created October 10, 2013 05:37
Plotting normal distributions, and sampling from them.
#!/usr/bin/python
'''
Plot a normally distributed random variable - and samples of this process - using scipy's univariate probability distributions.
'''
from scipy.stats import norm
import matplotlib.pyplot as plt
import pandas as pd
@jpvelez
jpvelez / intro_r_tutorial.md
Created August 8, 2012 20:15
Intro to R Tutorial

WHAT IS THIS?

This is a step-by-step tutorial for getting started with R, a powerful programming language for data analysis and visualization. It is aimed at near complete beginners. You'll basically want to be comfortable with spreadsheets and with using your computer's command line.

I slapped this together quickly, so expect some weirdness. Feel free to email me with comments or questions at jpvelez | at | gmail.com

I learned the following stuff using the UCLA Statistic's Department great R tutorials, so check those out:

@jpvelez
jpvelez / git_cheat_sheet.txt
Created July 25, 2012 21:05
Git Cheat Sheet
COMMANDS
git init - initiates local git repo
git add file.txt - add file
git add . - add new or changed files. doesn't add removed files.
git add -A - add new, changed, and removed files
git commit -m "added juan to hello message" - commit files that you added above
git commit -am "msg" - add and commit simultaneously
git status - what's changed since my last commit (compares files in wd with repo)
git diff <file> - shows you how a file has change