Skip to content

Instantly share code, notes, and snippets.

View engineer.md

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 Oct 2, 2017
Hammerspoon - switch Mac Input Source / keyboard layout on Kinesis Advantage 2 connect / disconnect
View init.lua
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
View gist:86452157738e4cd97c36
<?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