Skip to content

Instantly share code, notes, and snippets.

@ayman
ayman / init-terminal-notifier.el
Last active April 21, 2024 20:04 — forked from justinhj/gist:eb2d354d06631076566f
Add native MacOS notifications to Emacs...simply.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Terminal notifier
;; requires 'sudo port install terminal-notifier'
;; stolen from erc-notifier
;;
;; (terminal-notifier-notify "Emacs notification"
;; "Something amusing happened")
(defvar terminal-notifier-command
(executable-find "terminal-notifier")
@ayman
ayman / adafruitlightpaint4pi.py
Created September 25, 2013 05:42 — forked from ladyada/adafruitlightpaint4pi.py
Adafruit Light Painting with Pi (with added resize code)
#!/usr/bin/python
# Light painting / POV demo for Raspberry Pi using
# Adafruit Digital Addressable RGB LED flex strip.
# ----> http://adafruit.com/products/306
import RPi.GPIO as GPIO, Image, time
# Configurable values
filename = "hello.png"