Skip to content

Instantly share code, notes, and snippets.

View masonmark's full-sized avatar
🕺
totally

Mason masonmark

🕺
totally
View GitHub Profile
@skarol
skarol / xcode-duplicate-line-up-down.md
Created November 22, 2021 12:50
Xcode duplicate current line up/down

Xcode duplicate line up/down

Bind keys to duplicate lines in Xcode

  1. Open with text editor
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/IDETextKeyBindingSet.plist
@jackreichert
jackreichert / Keychain.swift
Last active January 11, 2017 02:43 — forked from s-aska/Keychain.swift
Swift Keychain class ( supported Xcode Version 7.0 beta 4 (7A165t) )
import UIKit
import Security
class Keychain {
class func save(key: String, data: NSData) -> Bool {
let query = [
kSecClass as String : kSecClassGenericPassword as String,
kSecAttrAccount as String : key,
kSecValueData as String : data ]