Skip to content

Instantly share code, notes, and snippets.

@interface RefactorTest : NSObject
@property (strong, nonatomic) NSMutableArray *arrayPayloadValue;
- (id) initWithArray:(NSArray *) thearray;
// this should return the sum of the array values
- (NSNumber *) sum;
// this should return the average of the array values
- (NSNumber *) average;
@constellationsoftware
constellationsoftware / _README.md
Created July 1, 2012 19:17 — forked from kneath/_README.md
Intelligent asset bundling for Rails (GitHub's asset bundling)

GitHub Javascript Strategy

Unless otherwise necessary (such as mobile development), the GitHub javascript codebase is based off jQuery. You can safely assume it will be included on every page.

File naming

  • All jquery plugins should be prefixed with jquery, such as jquery.facebox
  • All github-specific jquery plugins should be prefixed with jquery.github. Like jquery.github.repo_list.js
  • All page-specific files (that only run on ONE page) should be prefixed with page. page.billing.js
@constellationsoftware
constellationsoftware / README.md
Created July 1, 2012 19:09
Homebrew formula for nginx with the tcp socket proxy module already enabled
@constellationsoftware
constellationsoftware / gist:2373822
Created April 13, 2012 04:59 — forked from Vaguery/gist:2372617
Followup notes from my CleRB talk, 4/12/12
workshop I'm thinking of giving, if folks are interested; note it's not the usual GP workshop:
http://williamtozier.com/slurry/2011/10/21/the-mirror-dojo
very nice Java ("classic" style) GP libraries:
http://cs.gmu.edu/~eclab/projects/ecj/
Good-ish recent GP overview book (free):
http://www.gp-field-guide.org.uk/
NetLogo demo I showed of GP with turtle graphics:
@constellationsoftware
constellationsoftware / gist:2357937
Created April 11, 2012 08:35 — forked from GiaoGiaoCat/gist:1393770
Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Steps to install RVM + Ruby 1.9.2 + Rails + nginx + Passenger on CentOS (tested on v5.5)
# Install git and curl, if not already installed
sudo yum install git
sudo yum install curl
# Create the rvm group and add any users who will be using rvm to the group
sudo su -
groupadd rvm