Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am evanemolo on github.
  • I am evanemolo (https://keybase.io/evanemolo) on keybase.
  • I have a public key ASBziQXp_jHesm2CgC_mSF-e2XADdM4wtiptuwkJZ_x8KQo

To claim this, I am signing this object:

@evanemolo
evanemolo / tic-tac-toe.js
Created February 6, 2017 14:34
ESNext Tic Tac Toe
/* global require process */
const readline = require('readline');
const log = console.log;
class TicTacToe {
static get combos() {
return [
// rows
import sublime
import sublime_plugin
status_key = 'AlwaysShowFilenameOnStatusBar'
class AlwaysShowFilenameOnStatusBar(sublime_plugin.EventListener):
def on_activated(self, view):
global status_key
filePath = view.file_name()
@evanemolo
evanemolo / gist:11380480
Last active August 29, 2015 14:00
Perka - generate a visitor
# Customer Check-in Script
import requests
def init():
checkin_type = raw_input('Enter 1 for "points" or 2 for "punches": ')
new_customer_data = create_customer()
if checkin_type == '1':
checkin_customer('points', new_customer_data)
@evanemolo
evanemolo / gist:6046988
Last active December 20, 2015 01:09 — forked from pithyless/gist:1208841

Install Python

$ brew install readline sqlite gdbm --universal
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@evanemolo
evanemolo / high-solorized.itermcolors
Created April 3, 2013 11:50
iterm2 high-contrast solarized theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
@evanemolo
evanemolo / update.sh
Last active July 15, 2018 13:24
Update all packages
#!/bin/zsh
# Rubygems
sudo gem update
sudo gem update --system
gem cleanup
# Node Package Manager
sudo npm update -g
sudo npm update npm -g
@evanemolo
evanemolo / _scrape.py
Last active December 10, 2015 07:58
A Python script using the Requests library to scrape web sites, with URLs in named in a consecutive series. It also cleans up and adds a reference to Bootstrap for better local viewing.
# Scrape a series of webpages for a given URL. Add the URL at the CLI while
# running the _scrape.py file.
from sys import argv
import requests
import os
exercises = range(0, 53)
# Scrape the page
@evanemolo
evanemolo / .gitconfig
Created December 14, 2012 03:02
.gitconfig
[user]
name = Evan Emolo
email = i_am@evanemolo.com
[core]
excludesfile = ~/.gitignore_global
editor = sublime -n -w
[color]
branch = auto
diff = auto
@evanemolo
evanemolo / evan.zsh-theme
Created December 14, 2012 02:37
My latest zsh theme.
# EE Prompt
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
function get_pwd() {
print -D $PWD
}