Skip to content

Instantly share code, notes, and snippets.

View joshuarudd's full-sized avatar

Joshua Rudd joshuarudd

View GitHub Profile
@azlen
azlen / bulletpaths.js
Last active April 15, 2024 14:06
All Paths Lead to Roam
/*
* credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield)
* for the original concept which was part of their RoamGames submission
* and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/
*
*/
/* ======= OPTIONS ======== */
/* note: if you change these, reload the page to see the effect */
@jsloat
jsloat / Bear.Backlinks.js
Last active December 27, 2022 23:27
Generate backlinks for Bear notes in Scriptable on iOS
@bjhomer
bjhomer / instructions.md
Last active January 17, 2023 23:03
How to make the Day One command line tool automatically write to Day One 2

Using the Day One CLI with Day One 2

The dayone command line tool was originally written to work with Day One Classic, and by default writes its entries to the default Day One Classic journal directory1. If you want to use the dayone tool to write entries in to Day One 2 instead, there are a couple options.




Option 1. Use this option if you don't use Day One Classic at all.

@h0ysala
h0ysala / gist:3468cd10fb9da9cb1d65
Created February 5, 2016 20:41
dayone - /DO-Mac/Source/DOJournalPackageFile+OSXAdditions.m:20
ms $ echo "Hello World" | dayone new
2016-02-05 21:20:59.269 dayone[41672:986078] *** Assertion failure in +[DOJournalPackageFile(OSXAdditions) defaultPackage](), /Users/ben/Developer/DO-Mac/Source/DOJournalPackageFile+OSXAdditions.m:20
2016-02-05 21:20:59.270 dayone[41672:986078] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Default location is not set - Error Domain=DOErrorDomain Code=4 "(null) not found" UserInfo={NSLocalizedDescription=(null) not found}'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff9ba10c72 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff980e973c objc_exception_throw + 48
2 CoreFoundation 0x00007fff9ba1594a +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fff9115c16e -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169
4 dayone 0x000000010687b9d8 +[DOJo
@protocool
protocool / caveatPatchor.js
Created February 14, 2011 02:29
Sample caveatPatchor.js file for use in Propane 1.1.2 and above
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
@mudge
mudge / application_helper.rb
Created November 7, 2008 14:37
Widon't helpers for Rails (both the original and 2.1 versions).
module ApplicationHelper
# Shaun Inman's original Widon't
# http://shauninman.com/archive/2006/08/22/widont_wordpress_plugin
#
# @param [String] text the text to apply Widon't to
# @return [String] the text with Widon't applied
def widont(text)
text.strip!
text[text.rindex(' '), 1] = ' ' if text.rindex(' ')