I hereby claim:
- I am tillawy on github.
- I am tillawy (https://keybase.io/tillawy) on keybase.
- I have a public key ASAHuijT3y5nW4_2HgYSQbBYVObGlliFCXsRJTEEEF8rJAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def average(self,dataset): | |
output = dataset.map(lambda x:(x[1],x[2] )) | |
output = output.groupByKey() | |
output = output.map(lambda x:(x[0], len(x[1]),x[1])) | |
output = output.map(lambda b:(b[0], sum(b[2])/b[1])) | |
return output |
cat ${FILENAME}.log \ | |
| awk '{print $3}' \ | |
| cut -f 1 -d ":" \ | |
| sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 \ | |
| uniq -c \ | |
| sort -n -r \ | |
| head -n 100 |
let login = FBSDKLoginManager() | |
login.logInWithReadPermissions([ "email" ], fromViewController: self) { (result: FBSDKLoginManagerLoginResult!,error: NSError!) -> Void in | |
if (error != nil){ | |
SVProgressHUD.showErrorWithStatus(error.localizedDescription) | |
} else if (result.isCancelled) { | |
SVProgressHUD.showWithStatus("Canceled") | |
} else { | |
self.logger.info("fb token: \(result.token.tokenString)") | |
let params = ["fields" : "email,name"] |
-(BOOL)isTesting{ | |
__block BOOL output = NO; | |
[[[NSProcessInfo processInfo] arguments] each:^(NSString * arg) { | |
NSLog(@"arg:%@",arg); | |
if ([arg containsString:@"-XCTest"]) { | |
output = YES; | |
} | |
}]; | |
return output; | |
} |