This file contains 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
class *** extends Sprite | |
{ | |
private var mainView : MainView; | |
private var debugView : DebugView; | |
public function new() | |
{ | |
super(); | |
addEventListener(Event.ADDED_TO_STAGE, onAddedToStage); |
This file contains 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
function send_push_notification ($platform, $token, $msg) { | |
$data = array ( | |
'platform' => $platform, | |
'token' => $token, | |
'msg' => $msg, | |
'sound' => '', | |
'badge' => '1', | |
'payload' => array(), | |
); | |
This file contains 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)newShareWithToken:(NSString *)accessToken | |
{ | |
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; | |
AFJSONRequestSerializer *serializer = [AFJSONRequestSerializer serializer]; | |
[serializer setValue:[NSString stringWithFormat:@"Bearer %@", accessToken] forHTTPHeaderField:@"Authorization"]; | |
[serializer setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; | |
[serializer setValue:@"json" forHTTPHeaderField:@"x-li-format"]; | |
manager.requestSerializer = serializer; | |
NSDictionary *params = @{@"comment": @"Check out developer.linkedin.com! http://linkd.in/1FC2PyG", |
This file contains 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
NSURL *url = [NSURL URLWithString:@"http://www.arth.co.at/data/development/"]; | |
+ ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; | |
+ // setup | |
+ [request setPostValue:version forKey:@"version"]; | |
+ [request setPostValue:dateString forKey:@"date"]; | |
+ [request setPostValue:[device systemVersion] forKey:@"os"]; | |
+ [request setPostValue:platformString forKey:@"device"]; | |
+ [request setPostValue:width forKey:@"width"]; | |
+ [request setPostValue:[dimension objectAtIndex:1] forKey:@"height"]; | |
+ [request setPostValue:[NSString stringWithFormat:@"%@", @([[SettingsModel sharedModel] numberOfImages])] forKey:@"numimages"]; |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am kirikiri on github. | |
* I am kirikiri (https://keybase.io/kirikiri) on keybase. | |
* I have a public key ASB4dpya6Z6HWfPtHWjCN-Id9aQgpFzwS7Vicr0yXlLDOQo | |
To claim this, I am signing this object: |