Skip to content

Instantly share code, notes, and snippets.

View asmallteapot's full-sized avatar
😴
😴

Ellen Teapot asmallteapot

😴
😴
View GitHub Profile
@asmallteapot
asmallteapot / caseforgit.mdown
Created October 31, 2012 16:36 — forked from billburgess/caseforgit
A Case For Git

I realize that the decision has been mostly made regarding our future in version control systems. And while I think SVN is definitely a big step in the right direction… I feel we could make an even bigger step in this direction with Git. I will admit that I am biased towards Git, I am not alone in my admiration for it. I would like to outline a few thoughts for consideration. I will support whichever direction we take, but would like to offer my own opinions and research on the matter.

  • SVN creates .svn directories in every single folder (much like CVS). Every script we write or update to our new found frameworks we use will have to handle this. We can't currently swap out a framework once it has been added to CVS for a newer version without breaking the version control for it. This will hold true for any upgrade to SVN.

  • In SVN, each file & folder can come from a different revision or branch. At first, it sounds nice to have this freedom. But what this actually means is that there is a million different

@asmallteapot
asmallteapot / georgia_red_velvet_cookies.mdown
Created September 19, 2012 16:13 — forked from jeremyjbowers/georgia_red_velvet_cookies
Georgia Red Velvet Cookie Recipe

Georgia Christmas

(Red velvet sandwich cookies)

Recipe contains two parts: Cookies and frosting.

Cookies

(One batch makes 12-15 sandwich cookies)

Ingredients

  • 2 1/2 cups White Lily flour (or other low-protein flour)
@asmallteapot
asmallteapot / iOS fonts.md
Created May 16, 2012 13:39 — forked from dustinrue/gist:2707456
Custom fonts in iOS apps

Original blog post

  1. Add your custom font files to Git/Xcode/your app’s target.
  2. Add a UIAppFonts array entry to your Info.plist.
  3. Add each font’s filename (including extension) to the UIAppFonts entry.
  4. Now you can use the font like any that came with iOS.
@asmallteapot
asmallteapot / NFLQuarterback.h
Created March 27, 2012 15:08 — forked from jeremyjbowers/passer_rating.py
An Objective-C method to compute NFL passer rating.
#import <Foundation/Foundation.h>
#define NUMBER_IN_RANGE(num, floor, ceiling) ((num >= floor && num <= ceiling) ? num : ((num < floor) ? floor : ceiling))
@interface NFLQuarterback
@property (nonatomic, strong) NSNumber *completions;
@property (nonatomic, strong) NSNumber *interceptions;
@property (nonatomic, strong) NSNumber *touchdowns;
@property (nonatomic, strong) NSNumber *yards;
@property (readonly) NSNumber *passerRating;
require 'open-uri'
# url dsl -- the ultimate url dsl!
#
# You just can't beat this:
#
# $ irb -r url_dsl
# >> include URLDSL
# => Object
# >> http://github.com/defunkt.json