Skip to content

Instantly share code, notes, and snippets.

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)
@sk-chanch
sk-chanch / randomLocations.swift
Created June 4, 2020 05:38 — forked from inorganik/randomLocations.swift
Return a cluster of random locations around a given location
import Foundation
import CoreLocation
struct randomLocations {
// create random locations (lat and long coordinates) around user's location
func getMockLocationsFor(location: CLLocation, itemCount: Int) -> [CLLocation] {
func getBase(number: Double) -> Double {
return round(number * 1000)/1000
@sk-chanch
sk-chanch / CustomRatingView.swift
Last active October 27, 2020 04:49
Simple Star Rating for swift
//
// CustomRatingView.swift
// AppStarterKit
//
// Created by MAC-KHUAD on 26/10/2563 BE.
// Copyright © 2563 megazy. All rights reserved.
//
import UIKit
import RxSwift
@sk-chanch
sk-chanch / LongPressGestureRecognizerExtension.swift
Last active March 31, 2021 11:27
RxSwift ObservableType UILongPressGestureRecognizer LongPressGesture inspired from https://gist.github.com/saoudrizwan/43ba7adad04ae28bbf8bd96431f7749b.
//
// LongPressGestureRecognizerExtension.swift
// AppStarterKit
//
// Created by Chanchana Koedtho on 31/3/2564 BE.
//
import Foundation
import RxSwift
@sk-chanch
sk-chanch / NSParagraphStyleExtension.swift
Last active January 24, 2022 04:36
NSParagraphStyleExtension
//
// NSParagraphStyleEx.swift
// AppStarterKit
//
// Created by Chanchana Koedtho on 20/1/2565 BE.
//
import Foundation
import UIKit
@sk-chanch
sk-chanch / CustomSecureTextField.swift
Created September 15, 2023 05:34
SwiftUI SecureTextField with onEditingChanged and onCommit
//
// CustomSecureTextField.swift
//
//
// Created by Chanchana Koedtho on 15/9/2566 BE.
//
import Foundation
import SwiftUI
import UIKit