Skip to content

Instantly share code, notes, and snippets.

View jletourneau's full-sized avatar

Jack Letourneau jletourneau

View GitHub Profile
@jletourneau
jletourneau / timed_mute.scpt
Last active August 29, 2015 14:22
Timed mute AppleScript
global mute_time
global wait_complete
on run
display dialog "Mute for how many seconds?" default answer "120"
set mute_time to text returned of result as number
set volume with output muted
set wait_complete to 0
@jletourneau
jletourneau / unfill.el
Last active November 19, 2015 13:57
Unfilling paragraphs in Elisp
(defun unfill-region (start end)
"Unfill the current region; i.e. remove all newlines within paragraphs.
If an active region is not present, unfill the entire buffer."
(interactive "r")
(let ((fill-column (point-max)))
(if (use-region-p)
(fill-region start end)
(fill-region (point-min) (point-max)))))