Skip to content

Instantly share code, notes, and snippets.


Phil Tseng ptseng

View GitHub Profile
ptseng / NetworkingPlayground.swift
Last active Dec 5, 2021
Code Sample for Leveraging Structs and Generics in the Networking Layer with Swift 4 (An update to Swift Talk)
View NetworkingPlayground.swift
import Foundation
import UIKit
import PlaygroundSupport
// MARK: HttpMethod
enum HttpMethod<Body> {
case get
case post(Body)
View fa.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<id name="">
<ns1:fa xmlns:ns1="">
<ns1:header createdBy="" date="2015-12-31-08:00" time="12:57:11" vinLong="WMWXU1C51GXXXXXXX"/>
<ns1:standardFA colourCode="0850" faVersion="3" fabricCode="BZE1" series="F055" timeCriteria="0715" typeKey="XU13">
ptseng /
Created May 26, 2015
Keybase Proof

Keybase proof

I hereby claim:

  • I am ptseng on github.
  • I am ptseng ( on keybase.
  • I have a public key whose fingerprint is 1A56 290D C033 7BBE 2E1C 38CC F535 073F 4721 BF36

To claim this, I am signing this object: