Skip to content

Instantly share code, notes, and snippets.

@greenisus
greenisus / gist:1128276
Created August 5, 2011 19:14
Add/Delete Nodes
- (void)saveButtonPressed:(id)sender {
// we need to compare the previousNodoes list to the current nodes list so we
// can know which nodes to add and which ones to delete
NSMutableArray *nodesToAdd = [[NSMutableArray alloc] init];
NSMutableArray *nodesToDelete = [[NSMutableArray alloc] init];
NSLog(@"previous nodes: %@", previousNodes);
NSLog(@"lb nodes: %@", self.loadBalancer.nodes);
for (LoadBalancerNode *node in previousNodes) {
@greenisus
greenisus / How I Smoke Memphis Style BBQ Ribs
Created December 29, 2010 21:38
Smoking Memphis Style BBQ Ribs
Things you’ll need:
-A high quality smoker. Cheap smokers don’t hold consistent temperatures, and that’s the most important variable in cooking ribs
-Baby back ribs. In San Francisco, I’ve found Golden Gate Meat Company to be the best butcher around. Wherever you live, try to find the best meat source you can.
-A box or bag of apple wood chips. Apple tastes better than hickory or mesquite, and you don’t have to worry as much about over-smoking your meat. I hear pecan wood is also good, but it’s not readily available in California, so I’ve had no experience with it.
-Saran wrap
-Toothpicks
-A spray bottle
-Apple juice
-Charcoal. I prefer natural lump charcoal.
this is the first file
@greenisus
greenisus / file1.txt
Created June 30, 2010 21:25
API Test
this is the first file
contents
require 'net/http'
require 'uri'
# /api/v1/:format/new
# /api/v1/:format/gists/:user
# /api/v1/:format/:gist_id
res = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/xml/new'),
{ 'files[file1.ab]' => 'CONTNETS',
'files[file2.ab]' => 'contents' })