Skip to content

Instantly share code, notes, and snippets.

View andrealufino's full-sized avatar
🌱

Andrea Mario Lufino andrealufino

🌱
View GitHub Profile
@andrealufino
andrealufino / UITextField+Mask.swift
Last active December 24, 2017 13:41 — forked from dedeexe/UITextField+MaskPattern.swift
Adding Mask to a TextField
extension UITextField {
private struct FKFieldPatterns {
static var pattern = "pattern"
static var replacementChar = "replacementChar"
static var allowNumbers = "allowNumbers"
static var allowText = "allowText"
}
private var pattern : String {
@andrealufino
andrealufino / 0_reuse_code.js
Created July 10, 2014 10:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console