This file contains hidden or 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
(* CREATE AND AUTOLINK TO NEW NOTE FROM SELECTION | |
--Stephen Margheim | |
--11/26/13 | |
--open source | |
This script takes text selected from within an Evernote note and (1) creates a new note whose titles matches the selected text in the same notebook, (2) embeds a link to the original note as the first line of the new note, and (3) replaces the selected text with a link to the newly created note. | |
This allows you to easily create a wiki-like environment within your Evernote account. | |
*) |
This file contains hidden or 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 ruby | |
# encoding: utf-8 | |
# Brett Terpstra 2013, WTF license <http://www.wtfpl.net/txt/copying/> | |
# Outputs a vertical bar chart from date-based JSON data | |
# Requires the JSON rubygem: `[sudo] gem install json` | |
require 'date' | |
require 'open-uri' | |
require 'rubygems' | |
require 'json' |
This file contains hidden or 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
## Applications | |
# alias acorn="open -a Acorn" | |
# alias alpha="open -a ImageAlpha" | |
# alias tp="open -a TaskPaper" | |
# alias byword="open -a Byword" | |
# alias xc="open -a Xcode" | |
# | |
## subp is a custom function for finding Sublime projects | |
function _complete_app_alias() |
This file contains hidden or 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 ruby | |
# Works with IFTTT recipe https://ifttt.com/recipes/125999 | |
# | |
# Set Hazel to watch the folder you specify in the recipe. | |
# Make sure nvALT is set to store its notes as individual files. | |
# Edit the $target_folder variable below to point to your nvALT | |
# ntoes folder. | |
require 'date' | |
require 'open-uri' | |
require 'net/http' |
This file contains hidden or 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 ruby | |
# encoding: utf-8 | |
# tag primary folders =Tagname | |
# target them with #Tagname | |
# tag subfolders with @nickname | |
# target them with :nickname | |
# if no tagged folder exists but there's a matching folder name, that's used | |
# otherwise it will create folders based on :tags | |
# :tags can be strung together :bt:Drafts:testing for nesting | |
# Only one #Tag and one :path should exist in a file's tags |
This file contains hidden or 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
(* SPLIT TWO-PAGE PDFS | |
--Stephen Margheim | |
-- 11/2/13 | |
-- open source | |
VERSION 3.0 | |
--Version 3 adds a feature for OCR'd PDFs. If your PDF has been OCR'd, the script now automatically crops the individual pages so that the text field is centered. | |
This little program uses the Mac app Skim to split scanned PDFs that have two pages layed out on a single PDF page in landscape mode: |
This file contains hidden or 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
property tid : AppleScript's text item delimiters | |
property LF : (ASCII character 32) & (ASCII character 32) & (ASCII character 10) | |
tell application id "com.evernote.evernote" | |
set Evernote_Selection to selection | |
if Evernote_Selection is {} then display dialog "Please select a note." | |
set noteLink to "" | |
repeat with i from 1 to the count of Evernote_Selection | |
set noteName to title of item i of Evernote_Selection |
This file contains hidden or 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
(* EXPORT ALL SKIM NOTES TO EVERNOTE WITH IOS HYPERLINKS | |
-- Stephen Margheim | |
-- 10/16/13 | |
-- open source | |
REQUIRED PROGRAMS: | |
- Skim (pdf viewer and annotator) | |
- Evernote (cloud based note app) | |
- works with PDFPen for iPad and iPhone |
This file contains hidden or 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
(* EXPORT ALL SKIM NOTES TO EVERNOTE WITH DEVONTHINK HYPERLINKS | |
-- Stephen Margheim | |
-- 10/18/13 | |
-- open source | |
REQUIRED PROGRAMS: | |
- Skim (pdf viewer and annotator) | |
- Evernote (cloud based note app) | |
- DEVONthink (database program) |
This file contains hidden or 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
from webbrowser import open | |
from urllib import quote | |
query = sys.argv[1] | |
#Web Services | |
stackoverflow = '!s ' | |
wikipedia = '!w ' | |
macupdate = '!mac ' | |
appshopper = '!app ' |