Skip to content

Instantly share code, notes, and snippets.

View maddox's full-sized avatar

Jon Maddox maddox

View GitHub Profile
~/Desktop/source/projects/newzcache-web(master) $ sp install http://github.com/thoughtbot/paperclip.git
Initialized empty Git repository in /Volumes/Storage/source/projects/newzcache-web/vendor/plugins/paperclip/.git/
warning: Option "depth" is ignored for http://github.com/thoughtbot/paperclip.git
got 9e6afe4ff5b6b07bb1d50a4cb4bdd85feb1c9bbf
walk 9e6afe4ff5b6b07bb1d50a4cb4bdd85feb1c9bbf
got f0b64e25c1e5bbc17867c9a14c281af67402e576
got 6868ff952a61a80b30ebb61adf9ba75005bb9cb3
walk 6868ff952a61a80b30ebb61adf9ba75005bb9cb3
got 58b714ee053001187e4e72f6f7c89fb3f0abf870
From: Michael Rao/ES/VCU <president@vcu.edu>
Date: March 5, 2010 5:45:14 PM EST
Subject: Request from the Virginia Attorney General
To the VCU and VCU Health System Communities:
Virginia Commonwealth University received a letter from Virginia Attorney General Ken Cuccinelli requesting
that the Commonwealth's public universities and colleges rescind policies that ban discrimination on the
basis of sexual orientation.
start_day = 5
days = %w{Sun Mon Tues Wed Thurs Fri Sat}
puts days.inspect
=> ["Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"]
(1..start_day - 1).each do
day = days.shift
days << day
end
void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth, float ovalHeight){
float fw, fh;
if (ovalWidth == 0 || ovalHeight == 0) {
CGContextAddRect(context, rect);
return;
}
CGContextSaveGState(context);
CGContextTranslateCTM (context, CGRectGetMinX(rect), CGRectGetMinY(rect));
CGContextScaleCTM (context, ovalWidth, ovalHeight);
fw = CGRectGetWidth (rect) / ovalWidth;
2009-10-28 04:00:55.977 Parlour[632:a0f] checking plugins ...
2009-10-28 04:00:55.978 Parlour[632:a0f] checking plugin Type: OECorePlugin, Bundle: BSNES, version: 1.0, supported types: {
"SNES Game" = (
jma,
zip,
smc
);
} for smc ...
2009-10-28 04:00:55.978 Parlour[632:a0f] checking plugin Type: OECorePlugin, Bundle: CrabEmu, version: 1.0b, supported types: {
"Sega Master System Game" = (
test
[14:39][jmaddox@MacPro:~/Desktop]$ identify -verbose hp6.jpg
Image: hp6.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 450x693+0+0
Resolution: 100x100
Print size: 4.5x6.93
Units: Undefined
Type: TrueColor
Endianess: Undefined
@maddox
maddox / httparty_icebox.rb
Created October 13, 2009 22:02 — forked from karmi/httparty_icebox.rb
icebox httparty caching
# = Icebox : Caching for HTTParty
#
# Cache responses in HTTParty models [http://github.com/jnunemaker/httparty]
#
# === Usage
#
# class Foo
# include HTTParty
# include HTTParty::Icebox
# cache :store => 'file', :timeout => 600, :location => MY_APP_ROOT.join('tmp', 'cache')
## main
up - menu up
down - menu down
left - deck left
right - deck right
enter - select card
escape - back
## video player
* the new reload interaction
* having a conversation view for DM & replies
* the freaking awesome nearby view!
* search is a first class citizen
* dm and mention notification
* video upload
* MapKit integration
* super options for posting, but very hidden so as not to annoy
* insane support for 3rd party services that just work without having to even know thats what they are
* the subtle sound effects. No one is really doing this. With a UI as organic as the iPhone, I think when done right, its awesome. Well done sir.