View this code at http://livecoding.io/5814042
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
//mock for superagent - __mocks__/superagent.js | |
var mockDelay; | |
var mockError; | |
var mockResponse = { | |
status: function() { | |
return 200; | |
}, | |
ok: function() { | |
return true; |
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
-- Based on http://www.codenauts.com/blog/2011/3/1/importing-activities-from-omnifocus-or-things-to-pomodoro-ap.html and http://forums.omnigroup.com/showpost.php?p=55309&postcount=22 | |
-- Gets selected tasks or flagged tasks and copies them to ~/Dropbox/Pomodoro/tasks.json | |
tell application "OmniFocus" | |
-- CONSTANTS change them if you like | |
set UserHome to (POSIX path of (path to home folder)) as string | |
set JSONfilename to UserHome & "Dropbox/Pomodoro/tasks.json" as string | |
set JSONpattern to UserHome & "Dropbox/Pomodoro/*.json" as string | |
set onePomodoroIsMinutes to 25 | |
set estimateItems to {} |