Skip to content

Instantly share code, notes, and snippets.

View alexander-clark's full-sized avatar

Alexander Clark alexander-clark

View GitHub Profile

We’re looking for a junior, mid, or senior developer

You:

  • Communicate effectively and work well with others
  • Take pride in your work
  • Are curious and enjoy learning new things
  • Have at least a year of experience building with Rails, AngularJS, or React

We:

  • Are a small but established SaaS startup
@alexander-clark
alexander-clark / init.lua
Created October 2, 2017 20:56
Hammerspoon - switch Mac Input Source / keyboard layout on Kinesis Advantage 2 connect / disconnect
usbWatcher = nil
function usbDeviceCallback(data)
if (data["productName"] == "Advantage2 Keyboard") then
if (data["eventType"] == "added") then
hs.keycodes.setLayout("U.S.")
elseif (data["eventType"] == "removed") then
hs.keycodes.setLayout("Dvorak")
end
end
<?xml version="1.0"?>
<root>
<item>
<name>Compel Correct Shift Key</name>
<appendix>Disable wrong shift key for characters.</appendix>
<identifier>private.compel_correct_shift</identifier>
<autogen>
__KeyToKey__
KeyCode::BACKQUOTE, ModifierFlag::SHIFT_L | ModifierFlag::NONE,
KeyCode::VK_NONE