Skip to content

Instantly share code, notes, and snippets.

View andrewsardone's full-sized avatar

Andrew Sardone andrewsardone

View GitHub Profile
@andrewsardone
andrewsardone / runix.rb
Created November 17, 2009 21:04 — forked from manuel/runix.rb
print "You have no mail.\n"
10000.times {
'$ '.display
gets.each do | e |
if (e == "uname\n")
puts "Runix 1.0"
elsif (e == "halt\n")
exit
else
function createNewNutshellLead( $api ) {
$ns_contact_id = $this->setNutshellContactAndReturnID( $api );
$products = array();
$quote_price_ex_vat = ( $this->price + $this->getAdditionalProductsTotalPrice() );
$quote_product = array(
'qty'=>1,
// 1.
// “Safe” but retain cycle.
[self setCompletionBlock:^{
NSLog(@"1: %@", self->_foo);
}];
// 2.
// Unsafe. Could dereference nil.
__weak BCThing *weakSelf = self;