Skip to content

Instantly share code, notes, and snippets.

Avatar

Phil Tseng ptseng

View GitHub Profile
@ptseng
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 objc.io 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"?>
<faList>
<id name="">
<comment/>
<ns1:fa xmlns:ns1="http://bmw.com/2005/psdz.data.fa">
<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">
<ns1:eCodes>
<ns1:eCode>A080</ns1:eCode>
<ns1:eCode>POLS</ns1:eCode>
@ptseng
ptseng / keybase.md
Created May 26, 2015
Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am ptseng on github.
  • I am ptseng (https://keybase.io/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: