Skip to content

Instantly share code, notes, and snippets.

View tamvodopad's full-sized avatar
🏠
Working from home

Konstantin Popov tamvodopad

🏠
Working from home
View GitHub Profile
@judismith
judismith / Log tasks and hours to Day One
Created August 10, 2012 16:36
AppleScript to create Day One entry for hours logged in TaskPaper - Based on the AppleScript from Brett Terpstra to log TaskPaper completed tasks to Day One. This script does both
set archivedTasks to ""
set hoursEntries to ""
tell application "TaskPaper"
tell front document
-- don't care which file your log entry came from?
-- comment the next line out
set archivedTasks to "## " & name & return
set hoursEntries to "## " & name & ": Hours" & return
repeat with _task in search with query "project != Archive and @done"
if entry type of _task is not project type then
@jamband
jamband / console.php
Created July 16, 2012 04:50
Yii Framework: console command in module.
<?php
'commandMap' => array(
'deleteexpireduser' => array(
'class' => 'application.modules.user.commands.DeleteExpiredUserCommand',
),
),
@ttscoff
ttscoff / tp-dailylog.rb
Created February 26, 2012 04:33
Daily background logger to write completed TaskPaper tasks (system-wide) to a Day One entry
#!/usr/bin/ruby
# tp-dailylog.rb - Log TaskPaper tasks completed on the current day to a Day One entry
# Brett Terpstra 2012 <http://brettterpstra.com>
#
# Run it with launchd at 11pm and forget about it
#
# Notes:
# * Uses `mdfind` to locate all .taskpaper files changed in the last day
# * Scans for @done(xxxx-xx-xx) tags in each line matching today's date
# * Does not alter TaskPaper files in any way
@alexpgates
alexpgates / Use DayOne Journal data with php
Created April 6, 2011 20:05
Use DayOne data with php.
<?php
// DayOne is a nice little journaling app for iOS / Mac (available via App Store).
// This code requires php_class_lib available here: https://github.com/jsjohnst/php_class_lib
include('php_class_lib/classes/parsers/plist/PlistParser.inc');
// grab filenames for all of your journal entries
$entries = array();
if ($handle = opendir('/path/to/your/Journal.dayone/entries')) {