-
Create a Heroku account. You will need a credit card even though this is a free tier account.
-
Once you have created an account and can log in then go to this link: here
-
Scroll down until you see a purpose button that says "Deploy To Heroku". CLICK that button!
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
| // Copyright (c) 2014 Mark Grimes. All rights reserved. | |
| import Foundation | |
| class FakeUserDefaults : NSUserDefaults { | |
| typealias FakeDefaults = Dictionary<String, AnyObject?> | |
| var data : FakeDefaults | |
| override init?(suiteName suitename: String) { |
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
| # Basic Download: | |
| youtube-dl URL | |
| # Download Playlist, put in folder, and index with order: | |
| youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' URL | |
| # Download to /$uploader/$date/$title.$ext: | |
| youtube-dl -o '%(uploader)s/%(date)s/%(title)s.%(ext)s' URL | |
| # Download playlist starting from certain video: |
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 UIImage { | |
| static func snapshot(view: UIView) -> UIImage? { | |
| UIGraphicsBeginImageContextWithOptions(view.bounds.size, true, 0) | |
| view.drawHierarchy(in: view.bounds, afterScreenUpdates: true) | |
| let image = UIGraphicsGetImageFromCurrentImageContext() | |
| UIGraphicsEndImageContext() | |
| return image | |
| } | |
| } |
- XML GET
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "http://hostname/resource"- JSON GET
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://hostname/resource"- JSON PUT
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 PlaygroundSupport | |
| import UIKit | |
| class MyVC: UIViewController { | |
| let button = UIButton() | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| view.backgroundColor = .red | |
| view.addSubview(button) | |
| button.setTitle("button", for: .normal) |
- Create a GitHub account on github.com.
- Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
- (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
- Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
- Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level directory.
- Back in the GitHub application, you should see your files in the left column. Make sure they are all checked. If so, enter a mess
- 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
| # OS X Finder | |
| .DS_Store | |
| # Xcode per-user config | |
| *.mode1 | |
| *.mode1v3 | |
| *.mode2v3 | |
| *.perspective | |
| *.perspectivev3 | |
| *.pbxuser |
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 | |
| extension CustomStringConvertible { | |
| var description: String { | |
| var description: String = "\(type(of: self))(" | |
| let selfMirror = Mirror(reflecting: self) | |
| for child in selfMirror.children { | |
| if let propertyName = child.label { |