(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.
| #!/bin/sh | |
| # | |
| # Copyright (c) 2010 Warren Merrifield | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| #include <stdlib.h> | |
| #include <math.h> | |
| #include <AudioToolbox/AudioQueue.h> | |
| #include <CoreAudio/CoreAudioTypes.h> | |
| #include <CoreFoundation/CFRunLoop.h> | |
| #define NUM_CHANNELS 2 | |
| #define NUM_BUFFERS 3 |
| # 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) |
| ########################################## | |
| # | |
| # c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4 | |
| # | |
| # Version 2.82 | |
| # | |
| # Latest Change: | |
| # - MORE tweaks to get the iOS 10+ and 9- working | |
| # - Support iOS 10+ | |
| # - Corrected typo for iOS 1-10+ (thanks @stuikomma) |
| // | |
| // Created by Alex Hajdu on 5/27/13. | |
| // Copyright (c) 2013 Mr.Fox and friends. All rights reserved. | |
| // | |
| // To change the template use AppCode | Preferences | File Templates. | |
| // | |
| #import <Foundation/Foundation.h> |
| // Change font (ctrl a) | |
| var doc = context.document, | |
| selection = context.selection, | |
| font_name = [doc askForUserInput:"Font name:" initialValue:"Arial"]; | |
| function check_layer(layer){ | |
| log(layer) | |
| var className = layer.className() | |
| log("Checking layer " + layer + " of klass: " + className) | |
| if (className == "MSTextLayer") { |
| // | |
| // CommonMacro.h | |
| // | |
| // | |
| // Created by Haven on 26/9/13. | |
| // Copyright (c) 2013 LF. All rights reserved. | |
| // | |
| #import <CoreTelephony/CTTelephonyNetworkInfo.h> | |
| #import <CoreTelephony/CTCarrier.h> |
| // Source for the Accidental Tech Podcast (ATP) T-Shirt: | |
| // http://www.marco.org/2014/04/29/atp-shirts | |
| // | |
| // By Troy Gaul, June 2, 2014. | |
| // | |
| // Based on Obj-C veresion by Marco Arment, April 28, 2014. MIT license. | |
| // https://gist.github.com/marcoarment/2542cd28cb5df0aa97d8 | |
| import UIKit |
| import Foundation | |
| struct Point { | |
| var x: Int = 200 | |
| var y: Int! = 2 | |
| var z: Int? = nil | |
| } | |
| class CPoint { |
(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.