Skip to content

Instantly share code, notes, and snippets.

@joseines
joseines / ioslocaleidentifiers.csv
Created November 26, 2020 16:50 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@joseines
joseines / DateRange.swift
Last active March 31, 2016 22:22 — forked from preble/DateRange.swift
Experimenting with creating a SequenceType for iterating over a range of dates. Blogged here: http://adampreble.net/blog/2014/09/iterating-over-range-of-dates-swift/
func < (left: NSDate, right: NSDate) -> Bool {
return left.compare(right) == NSComparisonResult.OrderedAscending
}
struct DateRange: SequenceType{
var calendar: NSCalendar
var startDate: NSDate
var endDate: NSDate
var stepUnit: NSCalendarUnit
var stepValue: Int