I hereby claim:
- I am ole on github.
- I am olebegemann (https://keybase.io/olebegemann) on keybase.
- I have a public key whose fingerprint is 8110 7FC7 27F7 56F5 3693 BA7A 90C7 D328 64A1 CEDF
To claim this, I am signing this object:
| // | |
| // NSArray+BinarySearch.h | |
| // BinarySearch | |
| // | |
| // Created by Ole Begemann on 19.04.10. | |
| // Copyright 2010 Ole Begemann. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
| /* | |
| * Generated by class-dump 3.3.4 (64 bit). | |
| * | |
| * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. | |
| */ | |
| #pragma mark Named Structures | |
| struct CGPoint { | |
| float _field1; |
| #import <Foundation/Foundation.h> | |
| typedef id(^BankAccount)(char *cmd); | |
| typedef id(^CurrentBalanceMethod)(void); | |
| typedef id(^DepositMethod)(double); | |
| typedef id(^WithdrawMethod)(double); | |
| BankAccount CreateBankAccount(double initialBalance) | |
| { | |
| // Initialization |
| # (File moved to https://github.com/ole/Storyboard-Strings-Extraction) |
| <query type="relation" into="hr"> | |
| <has-kv k="route" v="bicycle"/> | |
| <bbox-query {{bbox}}/> | |
| </query> | |
| <query type="way" into="hrp"> | |
| <recurse from="hr" type="relation-way"/> | |
| <bbox-query {{bbox}}/> | |
| </query> | |
| <union> | |
| <item set="hr"/> |
| #!/usr/bin/env ruby | |
| # Determines the coordinates (latitude and longitude) of the places or | |
| # addresses passed as arguments (either on the command line or via stdin) | |
| # and prints the results. | |
| # This script requires the Ruby Geocoder gem by Alex Reisner | |
| # (http://www.rubygeocoder.com). | |
| # To install the gem, run this command from a Terminal session: | |
| # |
I hereby claim:
To claim this, I am signing this object:
| //: Playground - noun: a place where people can play | |
| import Cocoa | |
| protocol Feed : Equatable { | |
| var url: String {get} | |
| } | |
| protocol Folder { | |
| // This is new: |
| // Save this to stack.swift, then run | |
| // | |
| // $ xcrun swift stack.swift | |
| // | |
| // Does it compile or does the compiler segfault? | |
| struct Stack<Element> { | |
| var elements: [Element] = [] | |
| } |
| // We can't use `Character` or `String` ranges directly because they aren't countable | |
| // Create a countable range of ASCII values instead | |
| let range = UInt8(ascii: "a")...UInt8(ascii: "z") // CountableClosedRange<UInt8> | |
| // Convert ASCII codes into Character values | |
| range.map { Character(UnicodeScalar($0)) } // Array<Character> | |
| // → ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] |