- 114.114.114.114
- 114.114.115.115
- 8.8.4.4
- 8.8.8.8
- 208.67.222.222
| #include <iostream> | |
| #include <clang-c/Index.h> | |
| #include <clang-c/Platform.h> | |
| void printDiagnostics(CXTranslationUnit translationUnit); | |
| void printTokenInfo(CXTranslationUnit translationUnit,CXToken currentToken); | |
| void printCursorTokens(CXTranslationUnit translationUnit,CXCursor currentCursor); | |
| CXChildVisitResult cursorVisitor(CXCursor cursor, CXCursor parent, CXClientData client_data); |
| #include <clang-c/Index.h> | |
| #include <stdio.h> | |
| void parseMalformedFile(char* source) { | |
| CXIndex index = clang_createIndex( | |
| /* excludeDeclarationsFromPCH */ 0, | |
| /* displayDiagnostics */ 0); | |
| const char *args[] = { | |
| "-I/usr/include", | |
| "-I.", |
| <?php | |
| /** | |
| * @param $http2ch the curl connection | |
| * @param $http2_server the Apple server url | |
| * @param $apple_cert the path to the certificate | |
| * @param $app_bundle_id the app bundle id | |
| * @param $message the payload to send (JSON) | |
| * @param $token the token of the device | |
| * @return mixed the status code (see https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/APNsProviderAPI.html#//apple_ref/doc/uid/TP40008194-CH101-SW18) |
| var readline = require('readline'), | |
| fs = require('fs'); | |
| var LinkMap = function(filePath) { | |
| this.files = [] | |
| this.filePath = filePath | |
| } | |
| LinkMap.prototype = { | |
| start: function(cb) { |
| NSMutableArray *arguments = [[NSMutableArray alloc] init]; | |
| [arguments addObject:[[NSBundle mainBundle] pathForResource:@"MyScript" ofType:@"py"]]; | |
| [arguments addObject:@"--verbose"]; // Any arguments you want here... | |
| NSTask* task = [[NSTask alloc] init]; | |
| task.launchPath = @"/usr/bin/python"; | |
| task.arguments = arguments; | |
| NSMutableDictionary *defaultEnv = [[NSMutableDictionary alloc] initWithDictionary:[[NSProcessInfo processInfo] environment]]; | |
| [defaultEnv setObject:@"YES" forKey:@"NSUnbufferedIO"] ; |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
| - (NSArray *)splitString:(NSString*)str maxWidth:(CGFloat)width forFont:(UIFont *)font { | |
| NSMutableArray *tempArray = [NSMutableArray arrayWithCapacity:1]; | |
| NSArray *wordArray = [str componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; | |
| NSString *line = @""; | |
| NSString *lineWithNext = @""; | |
| for (int i = 0; i < [wordArray count]; i++) { | |
| if (line.length == 0) { line = [wordArray objectAtIndex:i]; } | |
| if (i+1 < [wordArray count]) { |