- Introduction to Functional Programming Johannes Weiß - https://vimeo.com/100786088
- ReactiveCocoa at MobiDevDay Andrew Sardone - https://vimeo.com/65637501
- The Future Of ReactiveCocoa Justin Spahr-Summers - https://www.youtube.com/watch?v=ICNjRS2X8WM
- Enemy of the State Justin Spahr-Summers - https://www.youtube.com/watch?v=7AqXBuJOJkY
- WWDC 2014 Session 229 - Advanced iOS Application Architecture and Patterns Andy Matuschak - https://developer.apple.com/videos/play/wwdc2014/229/
- Functioning as a Functionalist Andy Matuschak - https://www.youtube.com/watch?v=rJosPrqBqrA
- Controlling Complexity in Swift Andy Matuschak - https://realm.io/news/andy-matuschak-controlling-complexity/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension NSTimer { | |
| /** | |
| Creates and schedules a one-time `NSTimer` instance. | |
| - Parameters: | |
| - delay: The delay before execution. | |
| - handler: A closure to execute after `delay`. | |
| - Returns: The newly-created `NSTimer` instance. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| // MARK: - Comparable | |
| extension NSDecimalNumber: Comparable {} | |
| public func ==(lhs: NSDecimalNumber, rhs: NSDecimalNumber) -> Bool { | |
| return lhs.compare(rhs) == .OrderedSame | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Automate loading of F-Script Anywhere into any app. | |
| By Daniel Jalkut - @danielpunkass - http://indiestack.com/ | |
| Revision 0.2 by Marco Fabbri - @mrfabbri - mrfabbri@gmail.com | |
| To set up: | |
| 0. Make sure you have FScript.framework installed in /Library/Frameworks (http://www.fscript.org) | |
| 1. Copy this script to ~/.lldb/fsa.py | |
| 2. Add the following to your ~/.lldbinit file: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| // Get current working directory | |
| var wdbuf: [Int8] = Array(count: Int(MAXNAMLEN), repeatedValue: 0) | |
| let workingDirectory = getcwd(&wdbuf, UInt(MAXNAMLEN)) | |
| println("Working directory: \(String.fromCString(workingDirectory)!)") | |
| println("\nContents:") | |
| // Open the directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var readline = require('readline'), | |
| fs = require('fs'); | |
| var LinkMap = function(filePath) { | |
| this.files = [] | |
| this.filePath = filePath | |
| } | |
| LinkMap.prototype = { | |
| start: function(cb) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ArrayDiff.swift | |
| // | |
| // Created by Frank A. Krueger on 6/30/15. | |
| // Copyright © 2015 Krueger Systems, Inc. All rights reserved. | |
| // License: MIT http://opensource.org/licenses/MIT | |
| // | |
| import Foundation |
Here's my own list of the interesting stuff announced during this year's WWDC, collected from the keynotes, various Apple docs, blog posts and tweets.
If you're planning to watch the videos, I really recommend this Mac app that helps you download and watch them: https://github.com/insidegui/WWDC.
http://www.apple.com/osx/elcapitan-preview/
- split view - two apps side by side on full screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public protocol Emptiable { | |
| var isEmpty: Bool { get } | |
| } | |
| extension String: Emptiable {} | |
| extension Optional where T: Emptiable { | |
| public var isNilOrEmpty: Bool { | |
| guard let obj = self else { return true } | |
| return obj.isEmpty |
- Modify index.txt with your output path and proxy info
- Use Text Builder to build configuration for Surge:
$ text-builder -index /path/to/index.txtOr run$ sh build-allto build all your index files. - Import configuration via AirDrop/iTunes/Dropbox/iCloud
本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.