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
kizzx2 / hammerspoon-move-resize.lua
Last active Sep 17, 2019
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 = hs.geometry.new(hs.mouse.getAbsolutePosition())
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
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@kaw2k
kaw2k / alerts.md
Last active Aug 29, 2015
Alert API
View alerts.md

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
staltz / introrx.md
Last active Nov 13, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
You can’t perform that action at this time.