I hereby claim:
- I am iosengineer on github.
- I am iosengineer (https://keybase.io/iosengineer) on keybase.
- I have a public key whose fingerprint is C92F F660 181C 3ECC 8FB9 A815 1532 FB01 96F8 EDC6
To claim this, I am signing this object:
| <html> | |
| <head> | |
| <title>How Do I Declare A Block in Objective-C?</title> | |
| <style> | |
| body { | |
| background-color: #FFFFFF; | |
| color: #83948F; | |
| font-family: Lucida Grande, sans-serif; | |
| font-size: 16px; | |
| padding: 20px; |
| #import <Foundation/Foundation.h> | |
| void enumerate(NSEnumerator *enumerator, NSString *name) | |
| { | |
| id obj = [enumerator nextObject]; | |
| NSLog(@"Enumerating using '%@'...", name); | |
| while (obj) | |
| { |
| curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.[^\ ]*_sd_.*dl=1">SD' | sed -e 's/\?dl=1">SD//g' | xargs -n1 wget -N |
| // Playground - noun: a place where people can play | |
| import UIKit | |
| var str = "Hello, playground" | |
| var tableSourceArray = [ | |
| [ | |
| "Name" : "Provider", | |
| "Details" : [ "Chosen Provider:" ] |
| // Playground - noun: a place where people can play | |
| import Cocoa | |
| var str = "Hello, playground" | |
| operator infix ~ {} | |
| @infix func ~ <T>(lhs: AnyObject, T) -> Bool { | |
| if let output = lhs as? T { |
I hereby claim:
To claim this, I am signing this object:
| #pragma mark - Common Routines | |
| // I would prefer a standard ObjC way to do this but this is what's in place for now | |
| static inline void timeIntervalToHoursAndMinutes(NSTimeInterval timeInterval, double *hours, double *mins) | |
| { | |
| double fullMinutes = trunc(timeInterval / 60.0); | |
| if (hours) | |
| { | |
| *hours = trunc(fullMinutes / 60.0); |
| -- Out of interest: square wave (a first attempt) | |
| baseSquareMultiplier = 4 / pi | |
| squareWaveComponent f t k = sin (2 * pi * ((2 * k) - 1) * f * t) / ((2 * k) - 1) | |
| functionSum :: (Num a) => (a -> a) -> [a] -> a | |
| functionSum _ [] = 0 | |
| functionSum f (x:xs) = (f x) + (functionSum f xs) |
| echo "Note that this will only work for people who snag the same keybase handle as their twitter handle" | |
| echo "Also note that this will only track them if they have proved their identity on twitter, as the one you follow (so it's probably safe)" | |
| echo "I'm working on a regex version that will catch the rest of them (with different handles)" | |
| t followings | xargs -n1 -I % keybase track --batch -a twitter:% % |