Skip to content

Instantly share code, notes, and snippets.

@blueicesir
blueicesir / gist:dc1c006364090c3366b878459c31523e
Created September 18, 2017 07:56 — forked from liamcurry/gist:2597326
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@blueicesir
blueicesir / hammerspoon.init.lua
Created October 31, 2022 00:48 — forked from rainyear/hammerspoon.init.lua
hammerspoon.init.lua
local hyper = {'shift', 'cmd'}
local hyper2 = {'ctrl', 'cmd'}
-- hyper + up maximize the current window
hs.hotkey.bind(hyper, 'up', function()
hs.grid.maximizeWindow()
end)
hs.hotkey.bind(hyper, "Left", function()
local win = hs.window.focusedWindow()
local f = win:frame()