Skip to content

Instantly share code, notes, and snippets.

View gustin's full-sized avatar
🦁
Happy

gustin gustin

🦁
Happy
View GitHub Profile
@gustin
gustin / gist:6896350
Last active December 25, 2015 01:39
seekndestroy
perl -e "s/design/dezine/g;" -pi.save (find info -type f)
@gustin
gustin / Gemfile
Created September 12, 2013 01:59 — forked from peterhellberg/Gemfile
source :rubygems
gem "sinatra", "~> 1.3.2"
group :test do
gem "minitest", "~> 2.10"
gem "rack-test", "~> 0.6.1"
gem "capybara", "~> 1.1"
gem "capybara-webkit", "~> 0.11"
gem "capybara_minitest_spec", "~> 0.2"
@gustin
gustin / gist:6334855
Created August 25, 2013 16:38
sentiment
{anger}
{"name": "aggressive"},
{"name": "angry"}
{"name": "angst-ridden"},
{joy}
{"name": "bouncy"},
{"name": "calming"},
{"name": "carefree"},
@gustin
gustin / gist:4227000
Created December 6, 2012 18:46
Remove all the gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
@gustin
gustin / fogus-essays.txt
Created December 4, 2012 05:35 — forked from daveray/fogus-essays.md
Fogus Essays
Links for essays ref'd in http://blog.fogus.me/2009/03/11/seven-books/
On the Criteria to Be Used in Decomposing Systems Into Modules – David Parnas
http://www.cs.umd.edu/class/spring2003/cmsc838p/Design/criteria.pdf
A Note On Distributed Computing – Jim Waldo, Geoff Wyant, Ann Wollrath, Sam Kendall
http://labs.oracle.com/techrep/1994/smli_tr-94-29.pdf
The Next 700 Programming Languages – P. J. Landin
http://www.thecorememory.com/Next_700.pdf
@gustin
gustin / run-changed-tests.sh
Created November 29, 2012 16:10 — forked from chrismdp/run-changed-tests.sh
Handy little command to run all the tests that I've changed since the last commit
git status --porcelain | grep 'test' | grep -v 'factories' | cut -c4- | sort | uniq | xargs zeus test
@gustin
gustin / minitest.rake
Created October 26, 2012 19:19
Minitest in spec directory
require 'rake/testtask'
Rake::TestTask.new do |test_task|
test_task.libs.push 'spec'
test_task.name = 'spec'
test_task.pattern = 'spec/**/*_spec.rb'
@gustin
gustin / gist:3827192
Created October 3, 2012 14:25
Octave Cheat
% octave cheatsheet
% not equals(~=)
1 ~=2 % => 1
% change prompt
PS1('>> ');
% search path
setpath('~/some/path')
@gustin
gustin / sl_2012_notes.md
Created October 3, 2012 14:13 — forked from rbxbx/sl_2012_notes.md
Notes from strangeloop 2012 "The Higher Order Rubyist" talk

The Higher Order Rubyist

BUILT-INS

Obviously, when looking to program functionally in a given language, the first place one should look is within the language itself. Luckily, while not a Functional language (by any stretch of the word), Ruby has many facilities that enable it to act like one.

  • Enumerable
@gustin
gustin / .tmux.config
Created September 12, 2012 13:03
tmux config
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -g prefix C-a
bind C-a send-prefix
bind z send-keys C-z
bind C-z last-window
bind | spit-window -h