I hereby claim:
- I am 335g on github.
- I am 335g (https://keybase.io/335g) on keybase.
- I have a public key whose fingerprint is 2D21 CD31 B835 5682 589C 5FE1 A760 69C1 58BD 5D40
To claim this, I am signing this object:
| trait AnimalExt { | |
| type Food; | |
| fn eat(&self, food: Self::Food); | |
| } | |
| struct Dog; | |
| impl AnimalExt for Dog { | |
| type Food = String; |
| trait AnimalExt { | |
| fn eat(&self, food: String); | |
| } | |
| struct Dog; | |
| impl AnimalExt for Dog { | |
| fn eat(&self, food: String) { | |
| println!("dog: {:?}", food); | |
| } |
| let numbers = ["1", "2", "3", "a", "5"]; | |
| let only_numbers = numbers.iter() | |
| .scan((), |_, &item| item.parse::<i32>().ok()) | |
| .collect::<Vec<i32>>(); // [1, 2, 3] |
I hereby claim:
To claim this, I am signing this object:
| /// Xcode7 beta4 | |
| struct MyInt { | |
| var a: Int | |
| } | |
| struct MyGenerics<T> { | |
| var a: T | |
| } |
| var alpha: CGFloat = 0.0 | |
| State(alpha) | |
| >>> wait(1.0) | |
| >>> to(1.0, .InCubic, 0.8, toFloatValue()) | |
| >>> to(0.0, .OutCubic, 0.8, toFloatValue()) | |
| >>> wait(1.0) | |
| >>> to(1.0, .InCubic, 0.8, toFloatValue()) | |
| >>> to(0.0, .OutCubic, 0.8, toFloatValue()) |
| @implementation UIView (GRBLSpringAdditions) | |
| + (void)dampedOscillationAlongXAxis:(UIView *)view | |
| toX:(CGFloat)toX | |
| k:(CGFloat)k | |
| omega:(CGFloat)omega | |
| minimumDuration:(CGFloat)minimumDuration | |
| completionBlock:(void (^)(BOOL))completionBlock { | |
| /******************* |
| UICollectionViewController *toVC; | |
| UINavigationController *nav; | |
| toVC.useLayoutToLayoutNavigationTransitions = YES; | |
| [nav pushViewController:toVC animated:YES]; |