Skip to content

Instantly share code, notes, and snippets.

@epramono
epramono / WorkflowOvercastShowNotes
Created January 16, 2015 17:13
A Workflow action extension that accepts an Overcast URL and creates a reminder in Due to check that episode's show notes later when I get home. Requires: Workflow 1.0, Overcast 1.0, Due 1.9, and Launch Center Pro 2.1.
This workflow accepts: URLs
Text:
Read Show Notes at 9 PM
[Input]
Copy to Clipboard
URL:
launch://x-callback-url/clipboard/convert?format=urlencode
Open x-callback-url
URL:
@alexparker
alexparker / current-media-queries.scss
Created November 4, 2012 03:55
SASS Proposition for extending media queries via output buffer style functions
/*
I understand this is how it currently works.
Also there is a little "convenience" way to do it with some control structures and passing an argument to the mixin,
but the resulting code is still the same.
*/
@mixin handhelds() {
@media only screen and (max-width: 479px) { @content; }
}
@zholmquist
zholmquist / Hazel + Evernote Logging
Last active May 19, 2017 00:39
Hazel Embedded AppleScript that logs filename to Evernote. I use this in a script that cleans up my Desktop and Downloads and files everything away.
tell application "Evernote"
tell application "Finder" to set file_name to (name of theFile)
set time_string to do shell script "date '+%H:%M:%S'"
set date_string to do shell script "date '+%Y-%m-%d'"
set message to "<p><b>" & time_string & "</b> | Moved <em>" & file_name & "</em></p>"
set matches to find notes date_string & " notebook:Log"
if (count of matches) is 1 then
set the_note to item 1 of matches
@damenleeturks
damenleeturks / open-iterm-from-finder.md
Last active April 12, 2018 21:00 — forked from jonschlinkert/open-iterm-from-finder.md
Add an icon to your finder toolbar to open iTerm in the current folder.

Open iTerm iTerm2 from Finder

The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics. Update: Replaced the first script with one from http://hohonuuli.blogspot.de/2016/02/iterm2-version-3-open-iterm-here-script.html (thanks @smith64fx for the link)

  1. Open Automator
  2. Create an Application
  3. Choose Actions > Utilities > Run Applescript
  4. Paste the contents of open_in_iterm.app into the window.
  5. Save the script somewhere convenient
@mindbat
mindbat / rename_gutenberg.sh
Created July 28, 2013 18:43
Bash script to rename project gutenberg ebooks to their document titles.
#!/bin/bash
# Bash script to pull document titles from
# Project Gutenberg ebooks.
# Invoke using command like:
# find ./ -type f -name "*.txt" | xargs -n 1 ./process.sh ~/Documents/
# pull the first line of the file
FIRST_LINE=`head -n 1 $2`
@bencrowder
bencrowder / splitimage.sh
Last active January 27, 2019 18:28
Shell script to split two-spread image into two different images. Uses ImageMagick.
#!/bin/sh
# Split two-spread image into two different images (leaving some overlap for safety)
# Usage: splitimage filename.jpg
# ----------------------------------------------------------------------------------
convert $1 -crop 56x100%+0+0 +repage output/`basename $1 .jpg`a.jpg
convert $1 -flop -crop 60x100%+0+0 -flop +repage output/`basename $1 .jpg`b.jpg
@madrobby
madrobby / LICENSE.txt
Created August 1, 2011 21:34 — forked from 140bytes/LICENSE.txt
lettering.js
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Thomas Fuchs <http://mir.aculo.us/>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@chuanxshi
chuanxshi / mobile tags for your '<head>'
Created March 1, 2011 14:56
mobile tags for your '<head>'
<!doctype html>
<!-- Helpful things to keep in your <head/>
// Shi Chuan, https://github.com/shichuan/mobile-html5-boilerplate
-->
<head>
<!-- consider using below meta tags if you want to disable format detection by default -->
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="address=no"/>
<!-- consider using below link tag if the page is duplicate content of a desktop version -->
@kingfisher1234
kingfisher1234 / gist:caf351bed786f9050e1fa28c3352ded9
Last active January 12, 2022 18:11
Physical mute button for Zoom using an ATTiny85/Digispark and the Micronucleus bootloader to allow programming with the Arduino IDE - Mac Version
/*
Thanks to Elliotmade for the inspiration on this project
https://elliotmade.com/2020/04/23/physical-mute-button-for-zoom-meetings/
Refactored by HaxNobody to extend functionalty
https://gist.github.com/HaxNobody/7bde369d7a41348b8b91c1a4f358ea4a#file-zoommutebutton-ino
This program will send USB HID keyboard presses to bring the Zoom window into
the foreground and activate microphone and video functions.
* A momentary press on button 1 will toggle mute on or off.
* Press and hold button 1 to close zoom (Zoom Needs to be in focus on a Mac (Or you will close a different window)).
*/
@malarkey
malarkey / Three Wise Monkeys.md
Created December 2, 2012 14:26
Three Wise Monkeys (NDA)

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?