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
### First style
class Something
def foo
"foo"
end
protected
def bar
"bar"
end
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
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
ack gpsd libusb postgresql
ansible graphicsmagick libusb-compat proj
apple-gcc42 htop-osx libvo-aacenc protobuf
autoconf httpie libvorbis qt
automake iftop libvpx readline
avrdude imagemagick libxml2 redis
brew-cask ino libxslt s-lang
cmake irssi libyaml s3cmd
colordiff jbig2dec little-cms2 scons
coreutils jpeg lzlib sqlite
util.puts: Use console.log instead
Didn't find a name for constructor
/usr/local/bin/jsctags:195
throw e;
^
Error: Didn't find a name for constructor
at errorWithCode (/usr/local/lib/cfa2/jscfa.js:157:11)
at Array.Aobj.toType (/usr/local/lib/cfa2/jscfa.js:1574:11)
at /usr/local/lib/cfa2/jscfa.js:1994:18
at /usr/local/lib/cfa2/jscfa.js:2022:39
export ANSI_NORMAL="\[\e[0;37m\]"
export ANSI_YELLOW="\[\e[1;33m\]"
export ANSI_RESET="\[\e[0m\]"
export ANSI_CYAN="\[\e[0;36m\]"
export ANSI_BLUE="\[\e[0;34m\]"
export PS1="($ANSI_CYAN\u$ANSI_YELLOW@$ANSI_CYAN\h$ANSI_RESET):\w\$ "
@tonyc
tonyc / bates.css
Created June 3, 2011 18:40 — forked from markoa/bates.css
CSS file as seen on Railscasts
body {
background-color: #4B7399;
font-family: Verdana, Helvetica, Arial;
font-size: 14px;
}
a img {
border: none;
}
@tonyc
tonyc / sections_controller.rb
Created June 7, 2011 15:29 — forked from marcelloma/sections_controller.rb
decent_exposure + meta_search + cancan
class SectionsController < ApplicationController
load_and_authorize_resource
expose(:section)
expose(:sections) { search.paginate(:page => params[:page]) }
expose(:search) { Section.search(params[:search]) }
def create
if section.save
@tonyc
tonyc / Japanese style
Created August 25, 2011 16:35 — forked from endolith/Has weird right-to-left characters.txt
Unicode smileys emoticons
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(๏̯͡๏ )
(◕_◕)
@tonyc
tonyc / 001_postgresql_adapter_patches.rb
Created September 14, 2011 15:53
Sequence support in PostgreSQL
require 'active_record/base'
require 'active_record/connection_adapters/abstract_adapter'
require 'active_record/connection_adapters/postgresql_adapter'
module ActiveRecord
module ConnectionAdapters
class PostgreSQLAdapter < AbstractAdapter
def next_sequence_value(sequence_name)
Integer(select_value("SELECT NEXTVAL('#{sequence_name}')"))
end