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
# Title: Responsive Lazy Load YouTube embed tag for Jekyll | |
# Author: Brett Terpstra <http://brettterpstra.com> | |
# Description: Output a styled element for onClick replacement with responsive layout | |
# | |
# Syntax {% youtube video_id [width height] ["Caption"] %} | |
# | |
# Example: | |
# {% youtube B4g4zTF5lDo 480 360 %} | |
# {% youtube http://youtu.be/2NI27q3xNyI %} |
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
-- copy selected text | |
tell application "System Events" | |
keystroke "c" using command down | |
end tell | |
-- switch to nvAlt | |
tell application "nvALT" | |
activate | |
tell application "System Events" | |
keystroke "l" using command down -- Create or Search |
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/ruby | |
# Dropzone Destination Info | |
# Name: Jekyll Image Filer | |
# Description: Files images in a Jekyll repo | |
# Handles: NSFilenamesPboardType | |
# Creator: Brett Terpstra | |
# URL: http://brettterpstra.com | |
# IconURL: http://brettterpstra.com/destinations/icons/jekyllfiler.png | |
# OptionsNIB: ChooseFolder |