(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <objc/objc-runtime.h> | |
| NSArray *ClassGetSubclasses(Class parentClass) { | |
| int numClasses = objc_getClassList(NULL, 0); | |
| Class *classes = NULL; | |
| classes = malloc(sizeof(Class) * numClasses); | |
| numClasses = objc_getClassList(classes, numClasses); |
| #!/usr/bin/env python | |
| # vim:fileencoding=utf-8:ft=python | |
| # | |
| # Author: R.F. Smith <rsmith@xs4all.nl> | |
| # Last modified: 2015-05-24 12:28:45 +0200 | |
| # | |
| # To the extent possible under law, Roland Smith has waived all | |
| # copyright and related or neighboring rights to gitdates.py. This | |
| # work is published from the Netherlands. See | |
| # http://creativecommons.org/publicdomain/zero/1.0/ |
| find . -type f -name '*xib' -o -name '*storyboard' -print0 | xargs -0 perl -pi.back -e 's/pointSize=\"(\d+)/"pointSize=\"" . ($1 + 1)/ge' |
| # source : https://stackoverflow.com/a/18458893/1450201 | |
| rm -Rf /Applications/Android\ Studio.app | |
| rm -Rf ~/Library/Preferences/AndroidStudio* | |
| rm -Rf ~/Library/Preferences/com.google.android.* | |
| rm -Rf ~/Library/Preferences/com.android.* | |
| rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
| rm -Rf ~/Library/Logs/AndroidStudio* | |
| rm -Rf ~/Library/Caches/AndroidStudio* |
| /* | |
| Add following loop somewhere in your view. | |
| It will list all the fonts and type names (which you need to write properly or app will crash) | |
| In my case, i did presume like this: | |
| #define FONT_LIGHT @"SF-Pro-Text-Light" | |
| #define FONT_REGULAR @"SF-Pro-Text-Regular" | |
| #define FONT_MEDIUM @"SF-Pro-Text-Medium" | |
| #define FONT_BOLD @"SF-Pro-Text-Bold" | |
| #define FONT_BLACK @"SF-Pro-Text-Heavy" |
| /* | |
| Add following loop somewhere in your view. | |
| It will list all the fonts and type names (which you need to write properly or app will crash) | |
| In my case, i did presume like this: | |
| #define FONT_LIGHT @"SF-Pro-Text-Light" | |
| #define FONT_REGULAR @"SF-Pro-Text-Regular" | |
| #define FONT_MEDIUM @"SF-Pro-Text-Medium" | |
| #define FONT_BOLD @"SF-Pro-Text-Bold" | |
| #define FONT_BLACK @"SF-Pro-Text-Heavy" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
To run this, you can try:
curl -ks https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh | bash
I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.
Alternatively,
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
| - (void) makeRequest { | |
| NSString *link = @"https://www.google.com"; | |
| AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; | |
| [manager GET:link parameters:nil progress:nil success:^(NSURLSessionTask *task, NSDictionary* responseObject) { | |
| //NSLog(@"JSON: %@", responseObject); | |
| for (id key in responseObject) { | |
| NSLog(@"OBJECT: %@", [responseObject objectForKey:myObjectName]); | |
| } |
| import os | |
| import subprocess | |
| myString = str(raw_input('search key: ')) | |
| print myString | |
| myCommand= 'grep -rl "' + myString +'" /Users/timur/Desktop/ems' | |
| print myCommand | |
| os.system(myCommand) | |
| #result = subprocess.check_output([command]) | |
| #subprocess.Popen(command) |