Be careful before you use these tools.
Some tools may possibly help you to watch WWDC 2013 videos.
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| /////////////////////////////////////////////////////////////////////////////////////////// | |
| #pragma mark - Warn if we KVO a weak property | |
| // Doesn't support key paths. | |
| static BOOL PSPDFIsWeakProperty(id object, NSString *keyPath) { | |
| objc_property_t property = class_getProperty([object class], keyPath.UTF8String); | |
| if (property) { | |
| // https://developer.apple.com/library/mac/documentation/cocoa/conceptual/objcruntimeguide/articles/ocrtpropertyintrospection.html | |
| const char *attributes = property_getAttributes(property); | |
| return attributes && strstr(attributes, ",W"); |
| #!/bin/bash | |
| ########################################################################### | |
| # Choose your ffmpeg version and your currently-installed iOS SDK version: | |
| # | |
| VERSION="2.0.2" | |
| SDKVERSION="7.0" | |
| ARCHS="armv7 armv7s i386" | |
| # | |
| # |
| + (void)describePreferredFonts | |
| { | |
| static NSArray *textStyles; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| textStyles = @[UIFontTextStyleHeadline, | |
| UIFontTextStyleSubheadline, | |
| UIFontTextStyleBody, | |
| UIFontTextStyleFootnote, | |
| UIFontTextStyleCaption1, |
| <?php | |
| namespace Acme\Demo; | |
| /** | |
| * Parsed from http://timezone.help.ch/ | |
| * | |
| * @author Vitaliy Zhuk <[email protected]> | |
| */ | |
| class CountryContinent |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| // I don't have to mention that you shouldn't do that in production, right? | |
| @interface UIImagePickerController (Private) | |
| - (void)_setValue:(id)value forProperty:(NSString *)property; | |
| @end | |
| UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; | |
| [imagePicker _setValue:@YES forProperty:@"_UIImagePickerControllerAllowAnySuperview"]; |