Skip to content

Instantly share code, notes, and snippets.

View tylercasson's full-sized avatar

Tyler Casson tylercasson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tylercasson on github.
  • I am tylercasson (https://keybase.io/tylercasson) on keybase.
  • I have a public key whose fingerprint is AAB1 8FDE A439 1EE2 1EA4 08BC EB6D EF23 2ACF 0A01

To claim this, I am signing this object:

@tylercasson
tylercasson / main.swift
Last active August 29, 2015 14:07 — forked from aqlla/main.swift
import Foundation
typealias JSON = AnyObject
typealias JSONDict = Dictionary<String, JSON>
typealias JSONArray = Array<JSON>
struct User {
let id: Int
let name: String
let email: String
/**
* Link against MobileGestalt
*/
OBJC_EXTERN CFStringRef MGCopyAnswer(CFStringRef property) WEAK_IMPORT_ATTRIBUTE;
void someFunction() {
CFStringRef udid = MGCopyAnswer(CFSTR("UniqueDeviceID"));
/*
@tylercasson
tylercasson / git-update-all.sh
Last active September 24, 2017 04:43
Run `git pull` on git repos in current directory
ls | xargs -n1 -I % sh -c 'if [ -d %/.git ]; then echo ""; echo -e "[+] \e[32mUpdating %...\e[39m"; git -C % pull 2>&1 | sed "s/^/ \x1b(0\x78\x1b(B /" | sed "$ s/\x1b(0\x78\x1b(B/\x1b(0\x6d\x1b(B/"; fi'
@tylercasson
tylercasson / keymap.cson
Created November 21, 2017 05:29
Atom Keybindings
'atom-workspace atom-text-editor':
'ctrl-shift-backspace': 'editor:delete-to-beginning-of-line'
# https://github.com/atom/atom/issues/4026#issuecomment-137971196
'ctrl-left': 'editor:move-to-previous-word-boundary'
'ctrl-right': 'editor:move-to-next-word-boundary'
'ctrl-shift-left': 'editor:select-to-previous-word-boundary'
'ctrl-shift-right': 'editor:select-to-next-word-boundary'
'ctrl-backspace': 'editor:delete-to-previous-word-boundary'
'ctrl-delete': 'editor:delete-to-next-word-boundary'