Skip to content

Instantly share code, notes, and snippets.

View toohotz's full-sized avatar

Kemar White toohotz

View GitHub Profile
@toohotz
toohotz / ReflectionProperties.swift
Last active March 17, 2016 21:08
Example of how to use Swift Reflection API against object property values
/*
Initialized variables to defaults to avoid having to create
initializers to keep things simple.
*/
class Superuser {
var canUseSudo: Bool = false
}
class User: Superuser {
var name: String = ""
@toohotz
toohotz / ioslocaleidentifiers.csv
Created August 4, 2016 17:34 — forked from JaseHadd/ioslocaleidentifiers.csv
iOS Locale Identifiers
localeIdentifier Description
eu Basque
hr_BA Croatian (Bosnia & Herzegovina)
en_CM English (Cameroon)
rw_RW Kinyarwanda (Rwanda)
en_SZ English (Swaziland)
tk_Latn Turkmen (Latin)
he_IL Hebrew (Israel)
ar Arabic
uz_Arab Uzbek (Arabic)
@toohotz
toohotz / CanadianProvinces.json
Created May 11, 2017 15:46
Provinces of Canada
{
"AB": "Alberta",
"BC": "British Columbia",
"MB": "Manitoba",
"NB": "New Brunswick",
"NL": "Newfoundland and Labrador",
"NS": "Nova Scotia",
"ON": "Ontario",
"PE": "Prince Edward Island",
"QC": "Quebec",