This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get frontmost app | |
frontmost_app=$(osascript -e ' | |
tell application "System Events" | |
POSIX path of (file of application processes whose frontmost is true and visible is true) | |
end tell | |
') | |
escaped_frontmost_app=${frontmost_app//\//\\/} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
"""emlx.py | |
Class to parse email stored with Apple proprietary emlx format | |
Created by Karl Dubost on 2013-03-30 | |
Inspired by Rui Carmo — https://the.taoofmac.com/space/blog/2008/03/03/2211 | |
MIT License""" | |