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
l=raw_input() | |
for s in[0,1,3,4,6]:a=3**(s%3);print(' '.join([' ## # # # # #'[((ord('A$]m(kK%Ii'[int(x)])>>s&a)+a-1)::5]for x in l])+'\n')*a, |
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
d=''.join(map("{0:07b}".format,[126,48,109,121,51,91,95,112,127,123])) | |
a=raw_input() | |
l=" ### " | |
x=" " | |
p="#" | |
q=" #" | |
i=int | |
for r in range(9): | |
for n in a: | |
v=map(i,d[i(n)*7:7*i(n)+7]);t=x*5 |
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
git filter-branch --commit-filter ' | |
if [ "$GIT_COMMITTER_NAME" = "<Old Name>" ]; | |
then | |
GIT_COMMITTER_NAME="<New Name>"; | |
GIT_AUTHOR_NAME="<New Name>"; | |
GIT_COMMITTER_EMAIL="<New Email>"; | |
GIT_AUTHOR_EMAIL="<New Email>"; | |
git commit-tree "$@"; | |
else | |
git commit-tree "$@"; |
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 NSURLSession (Stuff) | |
-(void)doStuff; | |
@end | |
@implementation NSURLSession (Stuff) | |
-(void)doStuff { | |
NSLog(@"stuff"); | |
} |
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
// | |
// ViewController.m | |
// DeferredLocationTest | |
// | |
// Created by Eric Ito on 10/26/13. | |
// Copyright (c) 2013 Eric Ito. All rights reserved. | |
// | |
#import "ViewController.h" |
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)locationManager:(CLLocationManager *)manager didFinishDeferredUpdatesWithError:(NSError *)error { | |
NSLog(@"%s -- error: %@", __PRETTY_FUNCTION__, error); | |
_deferring = NO; | |
} | |
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations { | |
NSLog(@"%s -- %d locations", __PRETTY_FUNCTION__, locations.count); | |
[self.locationUpdates addObject:locations]; | |
[self.tableView reloadData]; | |
} |
NewerOlder