Marco's Bolognese recipe
- 300g ground skirt steak
- 100g pancetta
- 1/2 onion
- 1/2 carrot
- 1 celery stalk
- 1/2 cup dry white wine
- 1 cup milk
- 1/2 cup tomato paste
Travis Swicegood is a professional programmer and owner of Domain51, a web development company with a focus on non-profits, NGOs, and online activists. He doesn't change the world, he supports those who do. | |
He has personal a focus on web applications, performance, and stability; is author of Pragmatic Version Control using Git; and working on his second book. He has been using PHP; since '99 and still remembers how revolutionary PHP 4 was, but can't remember why. He's a TDD, open-source, and open government advocate—sometimes called a zealot—and lurker on many an open-source project mailing list when not learning other programming; languages; for fun, exploring his surroundings on bike, or tasting his latest kitchen and home-brew creations. |
Marco's Bolognese recipe
-- URLEncode routing from http://harvey.nu/applescript_url_encode_routine.html | |
on urlencode(theText) | |
set theTextEnc to "" | |
repeat with eachChar in characters of theText | |
set useChar to eachChar | |
set eachCharNum to ASCII number of eachChar | |
if eachCharNum = 32 then | |
set useChar to "+" | |
else if (eachCharNum ≠ 42) and (eachCharNum ≠ 95) and (eachCharNum < 45 or eachCharNum > 46) and (eachCharNum < 48 or eachCharNum > 57) and (eachCharNum < 65 or eachCharNum > 90) and (eachCharNum < 97 or eachCharNum > 122) then |
// | |
// GRAppDelegate.m | |
// Testme | |
// | |
// Created by Marco Tabini on 11-08-29. | |
// Copyright (c) 2011 Marco Tabini. All rights reserved. | |
// | |
#import "GRAppDelegate.h" |
<?php | |
error_reporting(E_ALL | E_STRICT); | |
function myHandler($errno, $errstr) { | |
throw new Exception($errstr, $errno); | |
} | |
set_error_handler('myHandler', E_ALL | E_STRICT); |
<div class="swipe"> | |
<img src="img/swipe-annotation.png" height="30" link="bookmark"><img src="img/swipe-favourite.png" height="30" link="favourite"><img src="img/swipe-pencil.png" height="30" link="annotate"><img src="img/swipe-email.png" height="30" link="email"><img src="img/swipe-tweet.png" height="30" link="tweet"><img src="img/swipe-facebook.png" height="30" link="facebook"> | |
</div> | |
In your JS (assuming you have jQuery, otherwise will need to adjust accordingly): | |
$(".swipe img[link]").click(function() { | |
document.location.href = $(this).attr("link") + "://" + $(this).attr("link"); | |
}); |
- (void) layoutComponents { | |
// HAHAHHAHAHAHAAHAHAHAHA | |
} |
-(void)drawRect:(CGRect)rect { | |
CGFloat side = MIN(self.bounds.size.width, self.bounds.size.height); | |
NSInteger steps = 512; | |
float internalRadius = side * 0.0; | |
float externalRadius = side * 0.5; | |
float halfinteriorPerim = M_PI * internalRadius; | |
float halfexteriorPerim = M_PI * externalRadius; |
marcot@Marcos-MacBook-Pro-2 ~/S/n/osmos (develop)> npm publish | |
npm http PUT https://registry.npmjs.org/osmos-odm | |
npm http 409 https://registry.npmjs.org/osmos-odm | |
npm http GET https://registry.npmjs.org/osmos-odm | |
npm http 200 https://registry.npmjs.org/osmos-odm | |
npm http PUT https://registry.npmjs.org/osmos-odm/-/osmos-odm-1.2.11.tgz/-rev/69-e1bc060fb1d8f9f1a2d9aea184e97370 | |
npm http 500 https://registry.npmjs.org/osmos-odm/-/osmos-odm-1.2.11.tgz/-rev/69-e1bc060fb1d8f9f1a2d9aea184e97370 | |
npm ERR! registry error parsing json |
update db.coll query: { _id: ObjectId('xxxxxxxxxxxxxxxxxxxxxxxxxxx') } update: { $set: { updated_at: new Date(1395845839340) } } |