Skip to content

Instantly share code, notes, and snippets.

@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

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 / Arduino Textfinder
Created April 20, 2012 01:55
Arduino Textfinder use
#include <SPI.h>
#include <Ethernet.h>
#include <TextFinder.h>
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {
0x02, 0xAA, 0xBB, 0xCC, 0x00, 0x2A };
char server[] = "twitknit-json-parsing.herokuapp.com";
@evanemolo
evanemolo / SublimeBlockCursor.py
Created October 27, 2012 22:49 — forked from kellishaver/SublimeBlockCursor.py
Sublime Text 2 Block Cursor - outside of Vintage Mode
# Add this file to a directory called SublimeBlockCursor in the Packages directory.
import sublime
import sublime_plugin
class SublimeBlockCursor(sublime_plugin.EventListener):
def view_is_widget(view):
settings = view.settings()
return bool(settings.get('is_widget'))
@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: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 / _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