Skip to content

Instantly share code, notes, and snippets.

View icco's full-sized avatar
🏠
Working from home

Nat Welch icco

🏠
Working from home
View GitHub Profile
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@tommarshall
tommarshall / simple_form.rb
Created August 22, 2013 14:58 — forked from clyfe/simple_form.rb
Bootstrap3 compatible simple_form initializer (with consistent Bootstrap 3 classes)
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class
# https://github.com/plataformatec/simple_form/issues/316
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput
@bryanveloso
bryanveloso / intros.md
Created October 21, 2013 19:15
A developing list of my favorite anime intro songs.

This is a work-in-progress list of my favorite anime intros. While I am not as dedicated to anime as I am to the JRPG, I have watched a good amount. That said, my memory sucks, so this list will definitely be missing a lot.

  • Tank, Seatbelts -- Cowboy Bebop (opening)
  • A Cruel Angel's Thesis, Yoko Takahashi -- Neon Genesis Evangelion (opening)
  • Period, Chemistry -- Fullmetal Alchemist: Brotherhood (fourth opening)
  • Guren no Yumiya, Linked Horizon -- Attack on Titan (first opening)
  • Ready Steady Go, L'Arc-en-Ciel -- Fullmetal Alchemist (second opening)
  • We Gotta Power, Hironobu Kageyama -- Dragonball Z (second opening)
  • Cha-La Head-Cha-La, Hironobu Kageyama -- Dragonball Z (first opening)
@icco
icco / cdn.txt
Last active December 26, 2015 16:39
CDN tests using siege.
http://pubnub.a.ssl.fastly.net/pubnub-3.4.6.min.js
http://storage.googleapis.com/calvin166-test/pubnub-3.4.6.min.js
http://s3.amazonaws.com/test.icco.me/pubnub-3.4.6.min.js
http://d1cq9hp03zvonx.cloudfront.net/pubnub-3.4.6.min.js
@jbarnette
jbarnette / gd.sh
Last active January 4, 2016 12:09
cd to any repo, cloning if necessary
function gd {
local parent=$(dirname "$1")
local name=$(basename "$1")
local owner=$(basename "$parent")
local nwo="$owner/$name"
local dir="$HOME/src/$nwo"
[ -d "$dir" ] || git clone "https://github.com/$nwo" "$dir"
cd "$dir"
@leemeichin
leemeichin / README.md
Created October 9, 2012 16:11
Apply Standard Competition Rankings to your leaderboard

Standard Competition Rankings

This class makes it easier to generate a leaderboard that complies with the Standard Competition Ranking system. That is, it takes joint/tied positions into account, and adjusts the positions accordingly.

Take the following list of users and points for example:

User    | Points
1         35
2         35
@turadg
turadg / rake.sh
Created February 23, 2011 16:28
Bash completion for ruby Rake
# bash completion for rake
#
# some code from on Jonathan Palardy's http://technotales.wordpress.com/2009/09/18/rake-completion-cache/
# and http://pastie.org/217324 found http://ragonrails.com/post/38905212/rake-bash-completion-ftw
#
# For details and discussion
# http://turadg.aleahmad.net/2011/02/bash-completion-for-rake-tasks/
#
# INSTALL
#
@jaredmichaelwilliams
jaredmichaelwilliams / 0.Setup
Last active August 28, 2018 01:28
Setting up a Yubikey for use with SSH
Preparation
Purchase YubiKey NEO
Install X Code and Command Line Tools, if installing anything from source.
X Code can be installed from the App Store.
Command Line Tools are installed from X Code: X Code -> Preferences -> Downloads -> Components -> Command Line Tools.
Install YubiKey reader library libyubikey (aka yubico-c)
Using homebrew:
brew install libyubikey
brew install ykpers
@tmcw
tmcw / foursquare_archive.py
Created August 14, 2012 15:19
Simple Foursquare Checkins Archive of one User
import requests, os, glob, json, sys, webbrowser
you = 'self'
data = 'checkins'
try: os.mkdir(data)
except Exception: pass
cid = 'YOUR_CLIENT_ID'
@tmcw
tmcw / foursquare_to_geojson.py
Created August 20, 2012 20:53
Turn your Foursquare Data Archive into a GeoJSON file
import glob, json
# this script loves this script
# https://gist.github.com/3350235
points = []
vids = set()
places = glob.glob("checkins/*.json")
for p in places: