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
| (* COPY CURRENT PAGE OF SKIM PDF TO CLIPBOARD | |
| -- created by Stephen Margheim | |
| -- 06 July 2013 | |
| -- open source | |
| edits by Derick Fay 2013-09-05: | |
| -- edited to use clipboard | |
| -- optimized for Alfred workflow to bypass Reference/Inline dialog box | |
| -- 2013-09-11 modified to just add (page) and paste |
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 python | |
| #-*- coding: utf-8 -*- | |
| """ | |
| Local Weather TextExpander Snippet | |
| ================================== | |
| Quickly enter local weather conditions, specifically current temp | |
| in www.dailymile.com workouts. This is useful for tracking | |
| performance against temperature more closely than dailymile.com | |
| currently allows with their pictures. |
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
| # File Transfer for Pythonista | |
| # ============================ | |
| # This script allows you to transfer Python files from | |
| # and to Pythonista via local Wifi. | |
| # It starts a basic HTTP server that you can access | |
| # as a web page from your browser. | |
| # When you upload a file that already exists, it is | |
| # renamed automatically. | |
| # From Pythonista's settings, you can add this script | |
| # to the actions menu of the editor for quick access. |
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
| # Posted at http://n8henrie.com/2013/02/quickly-import-pythonista-scripts-via-textexpander-or-bookmarklet | |
| # Script Name: Import Pythonista Script from Bookmarklet | |
| # I got help from here: http://twolivesleft.com/Codea/Talk/discussion/1652/what-others-do%3A-pythonista/p1 | |
| # I got help from here: http://www.macdrifter.com/2012/09/pythonista-trick-url-to-markdown.html | |
| # I got help from here: http://www.macstories.net/tutorials/from-instapaper-and-pythonista-to-dropbox-and-evernote-as-pdf/ | |
| import sys | |
| import urllib2 | |
| import editor |
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
| (* | |
| http://blog.smilesoftware.com/category/user-tips/textexpander/ | |
| Here are a couple of sample scripts to get you started. The first one creates a new group and then creates two snippets within it: | |
| *) | |
| tell application “TextExpander” | |
| –– create a new group | |
| make new group with properties {name:”My New Script Group”} | |
| set newGroup to the result |
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
| /* | |
| I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
| so it's better encapsulated. Now you can have multiple random number generators | |
| and they won't stomp all over eachother's state. | |
| If you want to use this as a substitute for Math.random(), use the random() | |
| method like so: | |
| var m = new MersenneTwister(); |
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 -rjcode -Ku | |
| # TaskPaper to Markdown converter | |
| # Usage: tp2md.rb filename.taskpaper > output.md | |
| require 'ftools' | |
| infile = ARGV[0] | |
| title = File.basename(infile,'.taskpaper').upcase | |
| output = "# #{title} #\n\n" | |
| prevlevel = 0 | |
| begin |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.