Skip to content

Instantly share code, notes, and snippets.

@kytrinyx
kytrinyx / README.md
Created January 8, 2013 23:26
Take a snapshot of yourself on every commit.

Git Commit Snapshots

Snap a picture of yourself on every commit.

Probably Mac OS X only, I haven't looked into others.

$ brew install imagesnap
$ git config --global init.templatedir '~/.git_template'
$ chmod +x post-commit
@jimweirich
jimweirich / ruby_flight2.rb
Created November 7, 2012 21:36
Flying the Parrot AR Drone via Ruby code
# See a video of this at: http://www.youtube.com/watch?v=jlKt2Ed-Y04&feature=youtu.be
require 'ardrone'
drone = ARDrone::Drone.new
drone.start
drone.take_off
sleep 5
drone.turn_right(1.0)
@jimweirich
jimweirich / take_off_and_land.rb
Created November 6, 2012 20:20
Ruby control of an Parrot AR Drone
# See video at: http://www.youtube.com/watch?v=3NlYGn3QY4U&feature=youtu.be
require 'socket'
class ATCommand
def initialize(socket, host=nil)
@host = host || '192.168.1.1'
@socket = socket
@tick = 0
@buffer = ""
@IanVaughan
IanVaughan / uninstall_gems.sh
Created June 9, 2012 20:37
Uninstall all rbenv gems
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}