Skip to content

Instantly share code, notes, and snippets.

@philgruneich
philgruneich / ios_icons.py
Last active January 14, 2016 00:26 — forked from sgerin/ios_icons
Updated with iOS 7 masks (:
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# You may find odd result: try searching for both device categories.
# If you find any bug, you can find me @silouane20 on Twitter.
# iOS 7 masks by @pgruneich on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
@fractaledmind
fractaledmind / EXPORT ALL SKIM NOTES TO EVERNOTE WITH HYPERLINKS (Complete)
Last active January 9, 2017 01:36
REQUIRED PROGRAMS: - Skim (pdf viewer and annotator) - Evernote (cloud based note app) This script will (as the title suggests) export all of you Skim notes directly to Evernote with hyperlinks. It integrates the GENERATE TOP 3 NOTES WITH SYSTEM URL script that will put 3 notes at the top of the PDF with linking information. This means your PDF …
@ttscoff
ttscoff / Archive Day One entries
Created August 26, 2013 20:46
Just a thought
# cd into your Journal/entries/ folder first
# completely untested. Use at your own risk.
for file in $(grep -le "date>2012" *.doentry); do mv $file /backup_folder/; done
@ttscoff
ttscoff / tags_json.html
Created August 26, 2013 20:11
For jTag. Place this is _layouts/tags_json.html
---
layout: nil
---
{
"tags_count": [{% for tag in page.json_tags_count %}
{"name":"{{tag.name}}","count":{{tag.count}}},{% endfor %}
false],
"tags": [{% for tag in page.json_tags %}
"{{tag}}",{% endfor %}
false]
@sgerin
sgerin / gist:6265532
Created August 19, 2013 03:25
Get OS X icons. Thanks to Brett Terpstra.
# Adapted from Brett Terpstra script : http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Fetches the 1024px version of an OS X app icon. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# If you find any bug, you can find me @silouane20 on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
def find_icon(terms):
@sgerin
sgerin / ios_icons
Created August 19, 2013 03:18
Get iOS icons. Thanks to Brett Terpstra.
# Adapted from Brett Terpstra script: http://brettterpstra.com/2013/04/28/instantly-grab-a-high-res-icon-for-any-ios-app/
# Gets the 1024px version of an app icon and applies a rounded mask. The result is displayed in Pythonista's console, you can tap and hold to save or copy it.
# You may find odd result: try searching for both device categories.
# If you find any bug, you can find me @silouane20 on Twitter.
from PIL import Image
from StringIO import StringIO
import re
import requests
@brandonpittman
brandonpittman / SmartPerspective.applescript
Last active December 21, 2015 02:59
Smartly open perspectives in OmniFocus.
--The most current version of SmartPerspective is now in a GitHub repo. (https://github.com/brandonpittman/OmniFocus/blob/master/SmartPerspective.applescript)
on run
open_perspective()
end run
on open_perspective()
tell application "OmniFocus"
tell default document
@fractaledmind
fractaledmind / Wikify Evernote: Autolinking to Pre-Existing Notes
Created August 13, 2013 19:55
This script searches for matches in the current EN note to pre-existing Wiki notes and links to them. It thus mimics the autolinking functionality of personal wikis, such as Voodoopad. To use, you simply either type up a note or go to an existing note and run the script. The script functions by [1] getting the text content of the selected note, …
tell application "Evernote"
try
set Evernote_Selection to selection
if Evernote_Selection = {} then
display dialog "Please select the note to Wikify"
end if
set noteName to (title of item 1 of Evernote_Selection)
set notebookName to (name of notebook of item 1 of Evernote_Selection)
end try
@fractaledmind
fractaledmind / Insert Markdown Link of DEVONthink Item into TextMate
Last active December 20, 2015 23:39
This script inserts a Markdown Inline Link for a DEVONthink item into your current TextMate (or TextEdit) document. You can choose either whatever item is currently selected, or you can navigate your DEVONthink database to insert a URL for any item.
@fractaledmind
fractaledmind / Insert Markdown Link to Chosen PDF
Created July 24, 2013 04:39
Script inserts Reference Link to selected PDF into either TextEdit or TextMate document. The link uses my custom URL scheme.