Skip to content

Instantly share code, notes, and snippets.

View lstebner's full-sized avatar
🍉
plant more seeds

Luke Stebner lstebner

🍉
plant more seeds
View GitHub Profile
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export NVM_DIR="/Users/lukestebner/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
chruby 2.2.8
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
# include .bashrc if it exists
if [ -f $HOME/.bashrc ]; then
. $HOME/.bashrc
fi
# here so it isn't invoked by emacs
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@lstebner
lstebner / gist:7285837d265b6e2223ff4e26a59e1703
Created July 25, 2016 01:03
writing and running specs is always rewarding
Lukes-MacBook-Pro-2:beatlab luke$ mocha spec/beatlab_spec.js
BeatsData
#config
✓ creates a config by default
✓ allows config to be overridden from constructor
✓ allows config to be overridden after construction
#process chunk
✓ properly read data keys
✓ properly imported raw beats
@lstebner
lstebner / steamplaylist.todo
Created March 18, 2015 02:19
All of my steam games, bunched into groups, but not ordered by priority yet.
Want to play:
☐ Adam's Venture Episode 3
☐ Alien Breed Impact
☐ Alien Breed 2
☐ Alien Breed 3
☐ Assassin's Creed Brotherhood
☐ Assassin's Creed Revelations
☐ Batman Arkham Origins
☐ Beyond Good and Evil
☐ Bionic Commando
@lstebner
lstebner / View.coffee
Created November 17, 2014 21:44
a basic coffeescript "View" class meant
class View
constructor: (container, @opts={}) ->
@default_opts()
@container = $ container
@setup()
default_opts: ->
@opts = _.extend(
{
@lstebner
lstebner / EventModel.coffee
Last active August 29, 2015 14:09
This class provides basic event interactions for on, off, one and trigger which can be inherited by any other classes
###
EventModel
built by Luke Stebner, November 2014
This class is meant to be extended by other classes in order to provide basic event
functions including on/off/one/trigger. You've probably used these through other
frameworks such as Backbone or jQuery, but this class allows any data object to provide
this functionality in a very clean, simple way.
Example:
@lstebner
lstebner / gist:aa7dcf8f951cbb56a8b1
Created August 23, 2014 16:39
These are the bash alias' I use, mostly git shortcuts
alias g='git'
alias o='open .'
alias x='gitx'
alias log='git log --name-only'
alias ci='git commit'
alias st='git status'
alias co='git checkout'
alias br='git branch'
alias rb='git rebase'
alias rbm='git rebase origin/master'
@lstebner
lstebner / ColorWheel.coffee
Created July 31, 2014 23:43
ColorWheel is a class that contains some static properties to assist with converting color values between hex and rgb(a).
# This class has a few static methods to help with color conversions between rgb and hex.
class ColorWheel
# Convert an rgb string to hex
@rgb_string_to_hex: (rgb="255, 255, 255") ->
#convert the string into the 3 int's that actually make up r, g & b
pieces = rgb.split(',')
rgb = []
for p, i in pieces
rgb[i] = parseInt(p)