Skip to content

Instantly share code, notes, and snippets.

@nuieskater
nuieskater / Parse Json API BX thailand Swift 4.0
Last active May 13, 2018 14:14
Json data to your Xcode app
import Foundation
struct Welcome: Codable {
let greeting: String
let instructions: [InstructionElement]
}
enum InstructionElement: Codable {
case instructionClass(InstructionClass)
case string(String)
@nuieskater
nuieskater / tplink.sh
Created March 23, 2018 21:22 — forked from DavidGoodwin/tplink.sh
control a tplink HS100/HS110 smart plug from bash/the cli