Skip to content

Instantly share code, notes, and snippets.

View tonyc's full-sized avatar
💭
wondering why github decided to add a user status

Tony Collen tonyc

💭
wondering why github decided to add a user status
View GitHub Profile
You're going to want to spend a minimum of 800 dollars on a paper shredder. Any
less than that and the quality is going to be so low you'll want to replace the
damn thing within 5 years, but you won't be able to because your identity will have
been stolen and your bank account emptied.
If you're serious about shredding, get something with carbide cutting heads and at
least a .5HP motor. I have a Rawlings-Chamberlain MK220 AKA "The Silver Knight". It
comes fully loaded with a dual rubber roller feeder and 6 layer hopper to separate
different kinds of paper, wood, metal, etc.. I can shred a New York telephone book
in under 15 seconds. The built in milling computer lets me customize the shred pattern
1 2 3 4 5 6 7 8 9
bit 01234567 01234567 01234567 01234567 01234567 01234567 01234567 01234567 01234567
--------------------------------------------------------------------------------
bin 01010011 01010010 11001010 10110010 11010101 00101100 10110011 01001010 11001101
dec 83 82 202 178 213 44 179 74 205
01010011 01010010 11001010 10110010 11010101 00101100 10110011 01001010 11010011
211
01010011 01010010 11001010 10110010 11010101 00101100 10110011 01001010 10110101
### First style
class Something
def foo
"foo"
end
protected
def bar
"bar"
end
@tonyc
tonyc / gist:8600125
Created January 24, 2014 15:58
tmux config
set -g prefix C-a
unbind C-b
set -s escape-time 1
set -g base-index 1
setw -g pane-base-index 1
bind r source-file ~/.tmux.conf
bind | split-window -h
#!/usr/bin/env ruby
require 'fileutils'
SRC = 'infected'
DEST_DIR = 'MachoMadness/sfx/npc'
MONSTER_TYPES = %w(quadruped smallbiped)
SOUND_TYPES = %w(attack1 attack2 death idle1 idle2 pain1 pain2 turnhostile)
monster_names = []
sounds_per_type = {}
@tonyc
tonyc / gist:6903506
Last active December 25, 2015 02:38
abc.app.Vent.on('foo': this.doFoo);
abc.app.Vent.on('bar': this.doBar);
abc.app.Vent.on('bla': this.doBla);
abc.app.Vent.on('asd': this.doAsd);
// and on for 10+ lines
var EXIFGPSParser = function(exifData) {
this.exif = exifData;
this.getDecimalLatitude = function() {
return this._DMStoDecimal(this.exif.GPSLatitude, this.exif.GPSLatitudeRef, 'S');
};
this.getDecimalLongitude = function() {
return this._DMStoDecimal(this.exif.GPSLongitude, this.exif.GPSLongitudeRef, 'W');
};
@tonyc
tonyc / gist:5989308
Last active December 19, 2015 17:09
Ubuntu + chruby + ruby-2.0/passenger/nginx/redis stack
#/usr/bin/env bash
set -e
set -x
apt-get update
apt-get upgrade
apt-get -y install build-essential curl git-core openssl libreadline6 libreadline6-dev \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
@tonyc
tonyc / gist:5886909
Last active December 19, 2015 02:59
class ThingsController < ApplicationController
load_and_authorize_resource :thing
def index
respond with @things
end
def show
respond_with @thing
end
<form id="addSpeaker">
<fieldset>
<legend>Speaker Info</legend>
Name: <input type="text" id="name" /> <br />
Bio: <textarea id="bio"></textarea> <br />
Twitter Handle: <input type="text" id="twitterHandle" /> <br />
State: <input type="text" id="state" /> <br />
Photo Url: <input type="text" id="photoUrl" />
</fieldset>
<fieldset>