I hereby claim:
- I am craigeley on github.
- I am craigeley (https://keybase.io/craigeley) on keybase.
- I have a public key whose fingerprint is CC2E 4AE9 28DA E157 B92B 8836 A6B7 72EA 445E 9C04
To claim this, I am signing this object:
#!/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 |
# 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 = '' |
#!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| |
#!/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' |
# -*- 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 |
#!/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 |
#!/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 |
#!/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 your Markdown files in Dropbox | |
# Uncomment the following lines if you are having encoding problems in OS X | |
# if RUBY_VERSION =~ /2.0.0/ | |
# Encoding.default_external = Encoding::UTF_8 | |
# Encoding.default_internal = Encoding::UTF_8 | |
# end |
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.*.*/ |
I hereby claim:
To claim this, I am signing this object: