(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.
| *.acn | |
| *.acr | |
| *.alg | |
| *.aux | |
| *.bak | |
| *.bbl | |
| *.bcf | |
| *.blg | |
| *.brf | |
| *.bst |
| // add child view | |
| UIViewController* controller = [self.storyboard instantiateViewControllerWithIdentifier:@"test"]; | |
| [self addChildViewController:controller]; | |
| controller.view.frame = CGRectMake(0, 44, 320, 320); | |
| [self.view addSubview:controller.view]; | |
| [controller didMoveToParentViewController:self]; | |
| // remove child view | |
| UIViewController *vc = [self.childViewControllers lastObject]; | |
| [vc.view removeFromSuperview]; |
| # 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) |
| - (void)viewDidLoad | |
| { | |
| [super viewDidLoad]; | |
| [[NSNotificationCenter defaultCenter] addObserver:self | |
| selector:@selector(keyboardWillShow:) | |
| name:UIKeyboardWillShowNotification | |
| object:nil]; | |
| [[NSNotificationCenter defaultCenter] addObserver:self | |
| selector:@selector(keyboardWillHide:) |
| #!/bin/sh | |
| #ID='A16FF353-8441-459E-A50C-B071F53F51B7' # Xcode 6.2 | |
| ID='992275C1-432A-4CF7-B659-D84ED6D42D3F' # Xcode 6.3 | |
| PLIST_BUDDY=/usr/libexec/PlistBuddy | |
| function add_compatibility() { | |
| "$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
| "$1/Contents/Info.plist" |
(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.
| /** | |
| * <b>Helper class to print any object you want</b> | |
| */ | |
| public class PrintMe { | |
| static StringBuilder result; | |
| static String newLine = System.getProperty("line.separator"); | |
| static ConcurrentLinkedQueue<Object> objects = new ConcurrentLinkedQueue<Object>(); | |
| private PrintMe() { | |
| } |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class Bezier3D : MonoBehaviour | |
| { | |
| public Vector3 start = new Vector3(0, 0, 0); | |
| public Vector3 end = new Vector3(1, 1, 0); | |
| public Vector3 handle1 = new Vector3(0, 1, 0); | |
| public Vector3 handle2 = new Vector3(1, 0, 0); |
I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
| #build.gradle | |
| # | |
| # compile 'io.reactivex:rxandroid:1.0.1' | |
| # compile 'io.reactivex:rxjava:1.0.14' | |
| # compile 'io.reactivex:rxjava-math:1.0.0' | |
| # compile 'com.jakewharton.rxbinding:rxbinding:0.2.0' | |
| # rxjava | |
| -keep class rx.schedulers.Schedulers { | |
| public static <methods>; |