Skip to content

Instantly share code, notes, and snippets.


Jeff Pamer jeffpamer

View GitHub Profile
staltz /
Last active Jul 23, 2021
The introduction to Reactive Programming you've been missing
kaw2k /
Last active Aug 29, 2015
Alert API

Thoughts on alerts

The basic question boils down to "Who should dictate if the alert is rendered?"

Parent controls all

In this situation, what you return from your render method is always rendered to the screen. Let's start by making a hypothetical API

View Makefile
# Hello, and welcome to makefile basics.
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
# Once you're done here, go to
# to learn SOOOO much more.
kizzx2 / hammerspoon-move-resize.lua
Last active Jun 3, 2021
Hammerspoon script to move/resize window under cursor
View hammerspoon-move-resize.lua
-- Inspired by Linux alt-drag or Better Touch Tools move/resize functionality
function get_window_under_mouse()
-- Invoke `hs.application` because `hs.window.orderedWindows()` doesn't do it
-- and breaks itself
local _ = hs.application
local my_pos =
local my_screen = hs.mouse.getCurrentScreen()