I hereby claim:
- I am rodericj on github.
- I am roderic (https://keybase.io/roderic) on keybase.
- I have a public key ASC3r0UcJQFnYicR7LCsGo2RnNlqKgdsAOVXmUaEOre0zQo
To claim this, I am signing this object:
{ | |
"basics" : { | |
"name" : "Roderic Campbell", | |
"label" : "Mobile App Developer", | |
"picture" : "https://secure.gravatar.com/avatar/10a17830b9e9e8985bcf1675e765f81d?s=1000", | |
"email" : "roderic@gmail.com", | |
"phone" : "(585) 802-0632", | |
"summary" : "An iOS Software App Engineer with 13 years of experience on Apple developer platforms. With an early career in the US Defense and Intelligence industry, followed by a transition to the Silicon Valley Startup scene in 2007. Once the iOS SDKs were released, the future path was clear. For the last 7 years, the focus has been on helping companies of all sizes execute their vision from a mobile perspective. ", | |
"location" : { | |
"countryCode" : "US", |
from OSMPythonTools.nominatim import Nominatim | |
from OSMPythonTools.overpass import overpassQueryBuilder, Overpass | |
# Create a Nominatim Query Object | |
crozesNominatimQuery = Nominatim().query('Crozes Hermitage') | |
# Create a query from the Nominatim Query object | |
query = overpassQueryBuilder(area=crozesNominatimQuery.areaId(), elementType=['way', 'relation'], includeGeometry=True) | |
# Or this: |
import Foundation | |
let encodedString = "data=%7B%0D%0A%22coffee%22%3A%20%22coffee%22%2C%0D%0A%22beer%22%3A%20%22beer%22%2C%0D%0A%22has_bylaws%22%3A%20true%0D%0A%7D%0D%0A" | |
guard let c = URLComponents(string: "http://fakenews.com/?" + encodedString) else { | |
fatalError("could not generate url components! :(") | |
} | |
for item in c.queryItems ?? [] { | |
print("Got key \(item.name) with value \(item.value)") |
# tax stuff | |
https://medium.com/@davissenseman/tax-simplification-take-three-211b7cd319f7 | |
Under existing tax code, an individual who currently makes $200,000 would pay 35% tax on the amounts over $191,650, 33% tax on the amounts over $91,900, 25% tax on the amounts over $37,950, 15% tax on the amounts over $9325 and 10% tax on the first $9324 of earnings. | |
old 5 = (200000-191650) *.35 => 2,922.5 | |
old 4 = (191650-91900) *.33 => 32,917.5 | |
old 3 = (91900-37950)*.25=> 13,487.5 | |
old 2 = (37950-9325)*.15 => 4,293.75 | |
old 1 = 9324*.1=> 932.4 | |
old tax = old 5 + old 4 + old 3 + old 2 + old 1 => 54,553.65 |
//: Playground - Track the ISS from a playground | |
import MapKit | |
import XCPlayground | |
class ISSFetcher: NSObject { | |
var completion: (Double, Double) -> Void | |
var timer: NSTimer? | |
init(inCompletion: (Double, Double) -> Void) { |
I hereby claim:
To claim this, I am signing this object:
#import "BTHomeInternalViewController.h" | |
#import "TrapsAppDelegate.h" | |
#import "BTNetwork.h" | |
#import "FBConnect/FBConnect.h" | |
#import "BTUserProfile.h" | |
#import "BTConstants.h" | |
//From: from http://iphonedevelopertips.com/cocoa/json-framework-for-iphone-part-2.html |
from django.shortcuts import HttpResponse, HttpResponseRedirect, render_to_response, get_object_or_404 | |
from django.contrib.auth import authenticate, login, logout | |
from django.contrib.auth.decorators import login_required | |
import urllib | |
import operator | |
from datetime import datetime | |
from django.utils import simplejson |
FAIL | |
test_CARL_v7_ah_91_unknown (TestDataMapTests.test_CARL_v7_ah_91_unknown) ... | |
'key' 'Unit Test Value' 'Current Value' | |
u'AirSegment' "[{'_sequence': '0', 'arri" "[{u'arrival_date': u'2008" | |
u'departure_date' '2008-04-05' '05APR' |
def increment(self, i): | |
if i == ~1/2: | |
return 0 | |
if i % 2 == 0: | |
return i | 1 | |
else: | |
return self.increment(i>>1)<<1 |