This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is the first file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this is the first file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }) |
NewerOlder