This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import CoreLocation | |
| # print dir(CoreLocation) | |
| class ShowLocation(object): | |
| """docstring for ShowLocation""" | |
| def locationManager_didUpdateToLocation_fromLocation_(self, manager, newLocation, oldLocation): | |
| """docstring for didUpdateToLocation:fromLocation:""" | |
| print "moo" #newLocation, oldLocation | |
| def timerFire_(self, timer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Salt: D1CE20E851F7DD8D70C5C6B045D3B5800F7CBEEC | |
| Verifier: 6B920A43C958E0DEB0F1A395DFD647044F566925AA4FC589E4AA179B703C09B80FD95249EBD59FA4EFF05F4058AB961395F482312A80D8883C0D5E4E21C1AE574CD2B92330730F4B3755A8BA07FA8A1C181E1CFFEAA9838EB09B10E8941418B960A8E255A08C9530564483386AC4B09299492A094537974B96E2FADC92186563 | |
| A is valid mod N | |
| B is valid mod N | |
| Client Key: 8CF16D124BBE47D480585A47AA799FA684307589AD74B0C064C1E61460897F226B631BF563E9CD5BC31B000FC1616DA0E7B445504A76FB1A067FA6142F2FC6C181FE2DCAE7EDDB6749A795F248C5E597212D7688DF8AD60137610CD5E0ACFEF8DCB63B95230D3EA77081F9850F11EAE53B86313230B62529CD19F123847D5A7E | |
| Server Key: 8CF16D124BBE47D480585A47AA799FA684307589AD74B0C064C1E61460897F226B631BF563E9CD5BC31B000FC1616DA0E7B445504A76FB1A067FA6142F2FC6C181FE2DCAE7EDDB6749A795F248C5E597212D7688DF8AD60137610CD5E0ACFEF8DCB63B95230D3EA77081F9850F11EAE53B86313230B62529CD19F123847D5A7E |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // For ARC | |
| __block __weak typeof(pitem) bpitem = pitem; | |
| pitem.urlBlock = ^{ | |
| bpitem.isExpanded = !bpitem.isExpanded; | |
| [self.controller expandCellWithPost:bpitem.post type:bpitem.expanded]; | |
| }; | |
| // For Non-ARC | |
| __block typeof(pitem) bpitem = pitem; | |
| pitem.urlBlock = ^{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| @interface Coordinate : NSObject | |
| @property (nonatomic, assign) int x; | |
| @property (nonatomic, assign) int y; | |
| - (Coordinate *)initWithX:(int)_x y:(int)_y; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)printDummyStuff | |
| { | |
| TestClass1 *tc1 = [[TestClass1 alloc] init]; | |
| [tc1 performSimulationWithFitnessFunction:^ int (int a) | |
| { | |
| int b = [self stuff:a]; | |
| int c = [self magic]; | |
| return b * (c + b * c); | |
| }]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Wraith:Test tatd2$ ls | |
| Wraith:Test tatd2$ git clone git@github.com:beelsebob/OpenStreetPad.git | |
| Initialized empty Git repository in /Users/tatd2/Documents/Test/OpenStreetPad/.git/ | |
| remote: Counting objects: 450, done. | |
| remote: Compressing objects: 100% (177/177), done. | |
| remote: Total 450 (delta 288), reused 422 (delta 260) | |
| Receiving objects: 100% (450/450), 1.04 MiB | 130 KiB/s, done. | |
| Resolving deltas: 100% (288/288), done. | |
| Wraith:Test tatd2$ git clone git@github.com:beelsebob/CoreParse.git | |
| Initialized empty Git repository in /Users/tatd2/Documents/Test/CoreParse/.git/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSArray *NSArrayOfTilesFromCoordinateRectWithinTile(OSPCoordinateRect r, double maxOverspill, OSPTile t) | |
| { | |
| OSPCoordinateRect tileRect = OSPCoordinateRectFromTile(t); | |
| if (OSPCoordinateRectIntersectsRect(r, tileRect)) | |
| { | |
| BOOL splitVertically = OSPCoordinateRectGetMinLongitude(r) - maxOverspill > OSPCoordinateRectGetMinLongitude(tileRect) || OSPCoordinateRectGetMaxLongitude(r) + maxOverspill < OSPCoordinateRectGetMaxLongitude(tileRect); | |
| BOOL splitHorizontally = OSPCoordinateRectGetMinLatitude(r) - maxOverspill > OSPCoordinateRectGetMinLatitude(tileRect) || OSPCoordinateRectGetMaxLatitude(r) + maxOverspill < OSPCoordinateRectGetMaxLatitude(tileRect); | |
| if (splitVertically || splitHorizontally) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| uniform sampler2D reference; | |
| uniform sampler2D comparison; | |
| uniform int comparisonCountX; | |
| uniform int comparisonCountY; | |
| in vec2 imageIndex; | |
| void main (void) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static NSDictionary *colours = nil; | |
| - (UIColor *)colourFromName:(NSString *)colourName | |
| { | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| colours = [NSDictionary dictionaryWithObjectsAndKeys: | |
| [UIColor colorWithRed:240.0f / 255.0f green:248.0f / 255.0f blue:255.0f / 255.0f alpha:1.0], @"aliceblue" , | |
| [UIColor colorWithRed:250.0f / 255.0f green:235.0f / 255.0f blue:215.0f / 255.0f alpha:1.0], @"antiquewhite" , | |
| [UIColor colorWithRed: 0.0f / 255.0f green:255.0f / 255.0f blue:255.0f / 255.0f alpha:1.0], @"aqua" , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| canvas | |
| { | |
| fill-color: rgb(0.9, 0.9, 0.7); | |
| } | |
| way[highway] | |
| { | |
| width: 3 pt; | |
| color: rgb(1.0, 1.0, 1.0); | |
| casing-width: 1pt; |