(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.
(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.
var http = require('http'); | |
var server = http.createServer(function(req, res) { | |
// console.log(req); // debug dump the request | |
// If they pass in a basic auth credential it'll be in a header called "Authorization" (note NodeJS lowercases the names of headers in its request object) | |
var auth = req.headers['authorization']; // auth is in base64(username:password) so we need to decode the base64 | |
console.log("Authorization Header is: ", auth); |
1 - Download the RDS certificates (root plus region-specific intermediate ones) bundle:
wget -O config/rds-combined-ca-bundle.pem https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem
2 - Add config/rds-combined-ca-bundle.pem
to the repository and redeploy to Heroku.
3 - Update the DATABASE_URL
env var:
Update 4/10/2017: updated script working with Cocoapod 1.3.1
... If you are using CocoaPods, you may want to remove unwanted localizations using the pre install script below. Modify the supported_locales array to match your supported locales and paste it into your Podfile.
Note the all lowercase
platform :ios, '9.0'
for (familyName) in UIFont.familyNames() { | |
print("\nFamily: ", familyName.utf8) | |
let fontNames = UIFont.fontNamesForFamilyName(familyName) | |
for (fontName) in fontNames { | |
print("\tFont: ", fontName.utf8) | |
} | |
} |
import UIKit | |
import PlaygroundSupport | |
public class DeviceViewController : UIViewController { | |
public enum ScreenType : Int { | |
case iPhone3_5Inch | |
case iPhone4Inch // includes 5th & 6h gen iPod Touch | |
case iPhone4_7Inch | |
case iPhone5_5Inch |
//: Playground - noun: a place where people can play | |
import UIKit | |
protocol Foo { | |
} | |
protocol Bar { | |