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 | |
require 'json' | |
require 'erb' | |
require 'open-uri' | |
# Uncomment these lines if you are having encoding issues on OS X Yosemite | |
# if RUBY_VERSION =~ /2.0.0/ | |
# Encoding.default_external = Encoding::UTF_8 | |
# Encoding.default_internal = Encoding::UTF_8 |
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
# -*- coding: utf-8 -*- | |
# To call script, use the follwing URL Action: | |
# - <pythonista://foursquare_checkin.py?action=run> | |
# Replace the information in lines 21-23 with your actual client and authorization codes. | |
import location | |
import re | |
import sys |
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 | |
# encoding: utf-8 | |
# Grab Foursquare location data from an IFTTT-generated text file | |
# Because of the Grep searches, this will work best with this recipe: https://ifttt.com/recipes/187849 | |
# Change line 15 with the location of your IFTTT file | |
# Make sure to change line 25 with your personal client ID and secret generated by Foursquare | |
# Once you have the data, you can output or write it however you like. | |
require 'open-uri' |
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 | |
# Change the file extensions below with what you are converting from and to | |
extFrom = '.html' | |
extTo = '.md' | |
files = Dir.glob("*#{extFrom}") | |
name = '' | |
base = '' | |
files.each do |file| |
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
# Mirror TaskPaper Files in BusyCal by Craig Eley 2014 | |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'time' | |
files = Dir["/Users/Path/To/Listacular/*.taskpaper"] | |
item = '' | |
due = '' |
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 | |
# Change to your filepath in lines 9 and 12 | |
# Add your exact search term to line 9 | |
# Add your exact to-do in line 13 | |
require 'time' | |
today = Time.now.strftime('%Y-%m-%d') | |
if File.readlines('/Users/USERNAME/Dropbox/Listacular/list.taskpaper', encoding: 'UTF-8').grep(/TERM/).any? | |
exit |
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/env ruby | |
# encoding: utf-8 | |
require 'time' | |
files = Dir["/Users/USERNAME/Dropbox/Listacular/*.taskpaper"] | |
projects = [] | |
found_completed = false | |
files.each do |file| |
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
-- enabling the next line will delete your current entries so that the creates new ones. I would enable it, but make a backup of your files on first run to be sure. | |
-- do shell script "rm -rf /Users/Path/to/Files/*.taskpaper" | |
tell application "Reminders" | |
set output to "" | |
repeat with i from 1 to (count of (reminders whose completed is false)) | |
set theReminder to reminder i of (reminders whose completed is false) | |
set reminderName to name of theReminder | |
set theList to name of container of theReminder | |
set dueDate to due date of theReminder | |
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 | |
# Reads an hourly log file with comma separated values | |
# Change the path to your Day One folder on line 43 | |
# Change the path to your text file in line 45 | |
require 'time' | |
require 'erb' | |
require 'date' | |
starred = false |
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
# -*- coding: utf-8 -*- | |
# To call script, use the follwing URL Action: | |
# - <pythonista://insert_location.py?action=run&argv=nav> | |
import location | |
import urllib | |
import webbrowser | |
import time | |
import clipboard |