Skip to content

Instantly share code, notes, and snippets.

@hyuki
Last active December 5, 2018 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyuki/9b4126dbb0bd50273c985bb4de8ca2a5 to your computer and use it in GitHub Desktop.
Save hyuki/9b4126dbb0bd50273c985bb4de8ca2a5 to your computer and use it in GitHub Desktop.
scrapbox - Create a new page in scrapbox.io as a diary.
#! /usr/bin/ruby
require 'date'
require 'uri'
PROJECT='yourprojectname'
BODY=URI.encode(<<EOD)
今日は、
#日記
EOD
system(%Q(open "https://scrapbox.io/#{PROJECT}/#{Date.today}?body=#{BODY}"))
# cf. https://scrapbox.io/help-jp/ページを作る#58ae7c9a97c29100005b886b
@hyuki
Copy link
Author

hyuki commented Aug 25, 2018

20180825144635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment