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
taskkill /IM iCloudDrive.exe /F | |
rem timeout~の行は無くてもよいのかもしれない。 | |
timeout /T 10 | |
rem iCloudDrive.exeを再起動させるためにexplorer.exeを起動する | |
explorer | |
exit |
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
import datetime | |
import os | |
import re | |
# Logseqのjournalsディレクトリのパスを指定する | |
os.chdir("C:/Users/username/iCloudDrive/iCloud~com~logseq~logseq/journals") | |
# 当日の日誌ページに相当するファイル名を設定する | |
today = datetime.datetime.today() | |
filename = today.strftime("%Y_%m_%d.md") |
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
javascript: (function () {var markdown = "[" + document.title + "](" + window.location.href + ")";var selection = window.getSelection().toString();ar = selection.split(/\n/);c = window.open();c.document.open();c.document.write(markdown + "<br />");for (j = 0; j < ar.length; j++) {c.document.write(" " + "- >" + ar[j] + "<br />");}})(); |
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
javascript: (function () {var markdown = "[" + document.title + "](" + window.location.href + ")";var selection = window.getSelection().toString();array = selection.split(/\n/);c = window.open();c.document.open();c.document.write(markdown + "<br />");for (j = 0; j < array.length; j++) {if (array[j] != "") {c.document.write(" " + "- >" + array[j] + "<br />");} else {c.document.write(" " + array[j] + "<br />");}}})(); |
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
import datetime | |
import os | |
import subprocess | |
# Logseqのjournalsディレクトリのパスを指定する | |
os.chdir("C:/Users/username/iCloudDrive/iCloud~com~logseq~logseq/journals") | |
# 当該のファイルを開くアプリケーションのパスを指定する | |
# (Visual Studio Codeで開く場合の例) | |
app = "C:/Users/username/AppData/Local/Programs/Microsoft VS Code/Code.exe" |