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 | |
# Based on everwatch.rb by Brett Terpstra, 2011, a 2013 update by spetschu, and a 2014 update by regedor | |
# Write in Markdown in Evernote and Backup Markdown files in Dropbox | |
# Change the next two lines with your account number and the path to your backup folder | |
watch_folder = File.expand_path("/Users/USERNAME/Library/Containers/com.evernote.Evernote/Data/Library/Application Support/com.evernote.Evernote/accounts/www.evernote.com/YOUR-ACCOUNT-NUMBER/content/") | |
mark_folder = "~/Dropbox/Evernotes/" | |
counter = 0 |
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/env ruby | |
# Scipt Example for Moving Reporter Entries to Airtable Rows in near-real time | |
require 'time' | |
require 'json' | |
# To prevent encoding errors on OSX | |
if RUBY_VERSION =~ /2.*.*/ | |
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
require 'sinatra' | |
require 'json' | |
require 'time' | |
require 'octokit' | |
require 'yaml' | |
set :bind, '0.0.0.0' | |
# Fix Encoding Errors on OSX | |
if RUBY_VERSION =~ /2.*.*/ |
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 | |
# Syncing Tasks Assigned to you in Asana with Things 3 | |
require 'json' | |
require 'yaml/store' | |
require 'time' | |
# Load storage file and variables | |
store = YAML::Store.new("data.yml") | |
mod = store.transaction { store[:mod_time] } |
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 | |
# Use Reporter as a Foursquare Client | |
# Assumes your Reports contain these two questions: | |
# "What are you doing?" and | |
# "Where are you?" | |
require 'time' | |
require 'json' | |
require 'net/http' |
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
#!/usr/local/bin/ruby | |
# Scipt for parsing Google Timeline files to geoJSON | |
require 'time' | |
require 'json' | |
require 'nokogiri' | |
# To prevent encoding errors on OSX | |
if RUBY_VERSION =~ /2.*.*/ | |
Encoding.default_external = 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
#!/usr/local/bin/ruby | |
# Scipt for using Using Google Time to create summary records of Things in Day One | |
require 'time' | |
require 'date' | |
require 'json' | |
require 'yaml/store' | |
require 'nokogiri' | |
# To prevent encoding errors on OSX |
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
tell application "Reminders" | |
set output to "" | |
set hasOne to false | |
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 | |
if due date of theReminder exists then | |
set dueDate to due date of theReminder |