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 | |
# Scipt for Using Reporter to start time entries in Toggl | |
require 'time' | |
require 'json' | |
# Prevent encoding errors on OSX | |
if RUBY_VERSION =~ /2.*.*/ | |
Encoding.default_external = Encoding::UTF_8 | |
Encoding.default_internal = Encoding::UTF_8 |
#!/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' |
#!/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 |
if [[ `/usr/local/bin/doing last` == *"@done"* ]]; then | |
echo "💬"; | |
else | |
name=`/usr/local/bin/doing last | sed 's/@.*//g'`; | |
start=`grep -o -m 1 "\d*-\d*-\d*\s\d*:\d*\s" /path/to/what_was_i_doing.md`; | |
date1=`date -j -f '%Y-%m-%d %H:%M ' "$start" +"%s"`; | |
now=`date -j +"%s"`; | |
diff=$(($now-$date1)); | |
echo "$name 🕗$(printf "%02d" $(($diff / 3600))):$(printf "%02d" $((($diff / 60) % 60)))" | |
fi |
if RUBY_VERSION =~ /2.*.*/ | |
Encoding.default_external = Encoding::UTF_8 | |
Encoding.default_internal = Encoding::UTF_8 | |
end | |
dayone_path = '/path/to/journal.dayone/entries/' | |
file_path = ARGV[0] | |
/UUID:\s(?<uuid>.*)/ =~ IO.readlines(file_path)[1] | |
# Create working plist file |
#!/usr/local/bin/ruby | |
require 'plist' | |
# Fix encoding errors | |
if RUBY_VERSION =~ /2.2/ | |
Encoding.default_external = Encoding::UTF_8 | |
Encoding.default_internal = Encoding::UTF_8 | |
end |
I hereby claim:
To claim this, I am signing this object:
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.*.*/ |
#!/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 |
#!/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 |