Skip to content

Instantly share code, notes, and snippets.

Andrew Sardone andrewsardone

Block or report user

Report or block andrewsardone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5652968
// 1.
// “Safe” but retain cycle.
[self setCompletionBlock:^{
NSLog(@"1: %@", self->_foo);
// 2.
// Unsafe. Could dereference nil.
__weak BCThing *weakSelf = self;
View gist:3993575
function createNewNutshellLead( $api ) {
$ns_contact_id = $this->setNutshellContactAndReturnID( $api );
$products = array();
$quote_price_ex_vat = ( $this->price + $this->getAdditionalProductsTotalPrice() );
$quote_product = array(
View 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")
You can’t perform that action at this time.