Let's say you want to host domains first.com and second.com.
Create folders for their files:
| # VERSION 1.0.4 | |
| # Author: @madhavajay | |
| # This currently works for iOS and watchOS in the Simulator and Devices | |
| # Changes | |
| # Using ${TOOLCHAIN} in two places now | |
| # Added double quotes " around paths | |
| # Fixed watchOS Issues | |
| # Instructions iOS |
| // Created by Chris Eidhof on 04-01-16. | |
| // Copyright © 2016 Chris Eidhof. All rights reserved. | |
| // | |
| // Large parts copy/pasted from https://github.com/Eonil/TCPIPSocket.Swift | |
| import Foundation | |
| struct TCPIPSocketAddress { | |
| init(_ a:UInt8, _ b:UInt8, _ c:UInt8, _ d:UInt8) { | |
| let a1 = UInt32(a) << 24 |
| // | |
| // Signal+Extensions.swift | |
| // Khan Academy | |
| // | |
| // Created by Nacho Soto on 10/1/15. | |
| // Copyright © 2015 Khan Academy. All rights reserved. | |
| // | |
| import ReactiveCocoa |
| defmodule Repo.Migrations.CreateProcedures do @doc """ | |
| Creates procedure to get and update a local_id number on SaaS apps where | |
| next local id is stored in the tenant table. | |
| Example trigger is given for the user table | |
| """ | |
| use Ecto.Migration | |
| def up do | |
| execute "CREATE OR REPLACE FUNCTION get_local_id(tenant_id integer) RETURNS integer AS $$ |
| import Foundation | |
| protocol Serializable { | |
| static func deserializeInto(bytePtr: UnsafeMutablePointer<UInt8>, bytes: ArraySlice<UInt8>) -> ArraySlice<UInt8> | |
| } | |
| extension Serializable { | |
| typealias WorkaroundSelf = Self | |
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| # config/initializers/lol_json.rb | |
| module ActiveSupport | |
| module JSON | |
| module Encoding | |
| class JSONGemEncoder | |
| BYPASS_JSONIFY = Set.new | |
| alias_method :original_jsonify, :jsonify | |
(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.
| %% vim:set softtabstop=4 shiftwidth=4 tabstop=4: | |
| -module(sign_certificate). | |
| -author("Michael Taylor <[email protected]>"). | |
| %% External exports | |
| -export([sign_certificate/1]). | |
| % sign a certificate from a certificate signing request (CSR) | |
| % RequestDER is a CSR binary in DER format | |
| % return Certificate as binary in DER format |