Skip to content

Instantly share code, notes, and snippets.

Jeff Pamer jeffpamer

Block or report user

Report or block jeffpamer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kizzx2 / hammerspoon-move-resize.lua
Last active May 4, 2020
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()
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.
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

staltz /
Last active May 27, 2020
The introduction to Reactive Programming you've been missing
You can’t perform that action at this time.