Skip to content

Instantly share code, notes, and snippets.

View bwestmoreland's full-sized avatar

Brent Westmoreland bwestmoreland

View GitHub Profile
@bwestmoreland
bwestmoreland / deprecation
Last active December 18, 2015 15:49
Handling multiple versions during iOS deprecations.
- (void)didUpdateLocation:(CLLocation *)location
{
NSTimeInterval t = [[location timestamp] timeIntervalSinceNow];
if (t < -180){
//Cached data
return;
}
[self foundLocation: location];
}
@bwestmoreland
bwestmoreland / package.json
Created January 12, 2013 23:13
package.json boilerplate
{
"name": "application-name",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node app"
},
"dependencies": {
"express": "3.0.5",
"ejs": "*"