Skip to content

Instantly share code, notes, and snippets.

@macneko-ayu
macneko-ayu / private.xml
Created May 22, 2018 — forked from kickbase/private.xml
Karabiner private.xml for Emacs, Vim, VSCode, Unity, Houdini.
View private.xml
<?xml version="1.0"?>
<root>
<appdef>
<appname>TERMINAL</appname>
<equal>com.apple.Terminal</equal>
</appdef>
<appdef>
<appname>ITERM2</appname>
<equal>com.googlecode.iterm2</equal>
</appdef>
View UINavigationBar+Height.swift
import Foundation
private var AssociatedObjectHandle: UInt8 = 0
extension UINavigationBar {
var height: CGFloat {
get {
if let h = objc_getAssociatedObject(self, &AssociatedObjectHandle) as? CGFloat {