Last active
December 5, 2018 05:51
-
-
Save hyuki/9b4126dbb0bd50273c985bb4de8ca2a5 to your computer and use it in GitHub Desktop.
scrapbox - Create a new page in scrapbox.io as a diary.
This file contains 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
#! /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 |
Author
hyuki
commented
Aug 25, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment