Skip to content

Commit

Permalink
'kaffa'
Browse files Browse the repository at this point in the history
  • Loading branch information
kaffa committed Apr 10, 2024
1 parent 46baf63 commit c2e73b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions auto-push.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import os
import sys
import time
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import re
import subprocess

import shutil


class Watcher:
path = sys.argv[1] if len(sys.argv) > 1 else '.'
path = sys.argv[1] if len(sys.argv) > 1 else os.getenv('USERPROFILE') + '\\Downloads'

def __init__(self):
self.observer = Observer()
Expand Down Expand Up @@ -40,7 +41,9 @@ def on_any_event(event):
elif event.event_type == 'modified':
# Taken any action here when a file is modified.
print("Received modified event - %s." % event.src_path)

if re.match(r"tiddlywiki \([\d+]*?\).html", event.src_path.split('\\').pop()):
shutil.copyfile(event.src_path, 'index.html')
subprocess.Popen(f'cmd /c "aio.cmd"', shell=True)


Expand Down
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@

<li>笔记</li>

<li>笔记史</li>

<li>经典概念</li>

<li>数字花园</li>
Expand Down Expand Up @@ -408,7 +410,7 @@
{"created":"20240407182403622","title":"$:/state/tree/$:/temp/","text":"show","modified":"20240407182403622"},
{"created":"20240407182404803","title":"$:/state/tree/$:/themes/","text":"show","modified":"20240407182404803"},
{"title":"$:/status/RequireReloadDueToPluginChange","text":"no"},
{"title":"$:/StoryList","created":"20240408113905349","text":"","list":"$:/ControlPanel StartHere now SmallThoughts RecentlyRead","modified":"20240408113905349"},
{"title":"$:/StoryList","created":"20240409170344479","text":"","list":"StartHere 元知识 now 笔记 笔记史 SmallThoughts RecentlyRead","modified":"20240409170917382"},
{"created":"20240407191446882","text":"","tags":"","title":"$:/tags/Stylesheet","modified":"20240407191634805"},
{"created":"20240407191716228","title":"$:/theme","text":"$:/themes/tiddlywiki/vanilla","modified":"20240407191716981"},
{"title":"$:/themes/tiddlywiki/snowwhite","name":"Snow White","author":"JeremyRuston","core-version":">=5.0.0","plugin-type":"theme","description":"Emphasises individual tiddlers","dependents":"$:/themes/tiddlywiki/vanilla","plugin-priority":"0","version":"5.3.3","type":"application/json","text":"{\"tiddlers\":{\"$:/themes/tiddlywiki/snowwhite/base\":{\"title\":\"$:/themes/tiddlywiki/snowwhite/base\",\"tags\":\"[[$:/tags/Stylesheet]]\",\"text\":\"\\\\define sidebarbreakpoint-minus-one()\\n\u003C$text text={{{ [{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}removesuffix[px]subtract[1]addsuffix[px]] ~[{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}] }}}/>\\n\\\\end\\n\\n\\\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline\\n\\n.tc-sidebar-header {\\n\\ttext-shadow: 0 1px 0 \u003C\u003Ccolour sidebar-foreground-shadow>>;\\n}\\n\\n.tc-tiddler-info {\\n\\t\u003C\u003Cbox-shadow \\\"inset 1px 2px 3px rgba(0,0,0,0.1)\\\">>\\n}\\n\\n@media screen {\\n\\t.tc-tiddler-frame {\\n\\t\\t\u003C\u003Cbox-shadow \\\"1px 1px 5px rgba(0, 0, 0, 0.3)\\\">>\\n\\t}\\n}\\n\\n@media (max-width: \u003C\u003Csidebarbreakpoint-minus-one>>) {\\n\\t.tc-tiddler-frame {\\n\\t\\t\u003C\u003Cbox-shadow none>>\\n\\t}\\n}\\n\\n.tc-page-controls button svg, .tc-tiddler-controls button svg, .tc-topbar button svg {\\n\\t\u003C\u003Ctransition \\\"fill 150ms ease-in-out\\\">>\\n}\\n\\n.tc-tiddler-controls button.tc-selected,\\n.tc-page-controls button.tc-selected {\\n\\t\u003C\u003Cfilter \\\"drop-shadow(0px -1px 2px rgba(0,0,0,0.25))\\\">>\\n}\\n\\n.tc-tiddler-frame input.tc-edit-texteditor,\\n.tc-tiddler-frame select.tc-edit-texteditor {\\n\\t\u003C\u003Cbox-shadow \\\"inset 0 1px 8px rgba(0, 0, 0, 0.15)\\\">>\\n}\\n\\n.tc-edit-tags {\\n\\t\u003C\u003Cbox-shadow \\\"inset 0 1px 8px rgba(0, 0, 0, 0.15)\\\">>\\n}\\n\\n.tc-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {\\n\\t\u003C\u003Cbox-shadow \\\"none\\\">>\\n\\tborder: none;\\n\\toutline: none;\\n}\\n\\ntextarea.tc-edit-texteditor {\\n\\tfont-family: {{$:/themes/tiddlywiki/vanilla/settings/editorfontfamily}};\\n}\\n\\ncanvas.tc-edit-bitmapeditor {\\n\\t\u003C\u003Cbox-shadow \\\"2px 2px 5px rgba(0, 0, 0, 0.5)\\\">>\\n}\\n\\n.tc-drop-down {\\n\\tborder-radius: 4px;\\n\\t\u003C\u003Cbox-shadow \\\"2px 2px 10px rgba(0, 0, 0, 0.5)\\\">>\\n}\\n\\n.tc-block-dropdown {\\n\\tborder-radius: 4px;\\n\\t\u003C\u003Cbox-shadow \\\"2px 2px 10px rgba(0, 0, 0, 0.5)\\\">>\\n}\\n\\n.tc-modal {\\n\\tborder-radius: 6px;\\n\\t\u003C\u003Cbox-shadow \\\"0 3px 7px rgba(0,0,0,0.3)\\\">>\\n}\\n\\n.tc-modal-footer {\\n\\tborder-radius: 0 0 6px 6px;\\n\\t\u003C\u003Cbox-shadow \\\"inset 0 1px 0 #fff\\\">>;\\n}\\n\\n\\n.tc-alert {\\n\\tborder-radius: 6px;\\n\\t\u003C\u003Cbox-shadow \\\"0 3px 7px rgba(0,0,0,0.6)\\\">>\\n}\\n\\n.tc-notification {\\n\\tborder-radius: 6px;\\n\\t\u003C\u003Cbox-shadow \\\"0 3px 7px rgba(0,0,0,0.3)\\\">>\\n\\ttext-shadow: 0 1px 0 rgba(255,255,255, 0.8);\\n}\\n\\n.tc-sidebar-lists .tc-tab-set .tc-tab-divider {\\n\\tborder-top: none;\\n\\theight: 1px;\\n\\t\u003C\u003Cbackground-linear-gradient \\\"left, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.0) 100%\\\">>\\n}\\n\\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button {\\n\\t\u003C\u003Cbackground-linear-gradient \\\"left, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0.1) 100%\\\">>\\n}\\n\\n.tc-more-sidebar > .tc-tab-set > .tc-tab-buttons > button.tc-tab-selected {\\n\\t\u003C\u003Cbackground-linear-gradient \\\"left, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.05) 100%\\\">>\\n}\\n\\n.tc-message-box img {\\n\\t\u003C\u003Cbox-shadow \\\"1px 1px 3px rgba(0,0,0,0.5)\\\">>\\n}\\n\\n.tc-plugin-info {\\n\\t\u003C\u003Cbox-shadow \\\"1px 1px 3px rgba(0,0,0,0.5)\\\">>\\n}\\n\"}}}"},
Expand All @@ -418,7 +420,8 @@
{"created":"20240407171526282","title":"$:/themes/tiddlywiki/vanilla/settings/codefontfamily","text":"\"Courier New\", Monospace, \"SFMono-Regular\",Consolas,\"Liberation Mono\",Menlo,Courier","modified":"20240407171526282"},
{"created":"20240407171530362","title":"$:/themes/tiddlywiki/vanilla/settings/editorfontfamily","text":"Consolas","modified":"20240407171530362"},
{"created":"20240407191132677","title":"$:/view","text":"classic","modified":"20240407191711695"},
{"created":"20240407192005334","text":"记录笔记","title":"笔记","modified":"20240407192008949"},
{"created":"20240407192005334","text":"!!! 目录\n\n\"\"\"\n一、[[笔记史]]\n二、笔记方法论\n三、笔记软件现状\n四、笔记软件市场洞察\n\"\"\"\n","title":"笔记","modified":"20240409170915282"},
{"created":"20240409175721130","text":"笔记是一种记录信息的实践。","title":"笔记史","modified":"20240409175825449"},
{"created":"20240408041124503","text":"通过长期的实践而理解的概念,每个人理解的存在差异,因此不同的人对同一个经典概念可能存在不一致。","title":"经典概念","modified":"20240408041209166"},
{"created":"20240407191612333","text":"数字花园,Digital Garden","title":"数字花园","modified":"20240407191627140"},
{"created":"20240407192018748","text":"元知识,Meta Knowledge,我在这是指关于知识的知识,将人看作系统,包括知识输入,知识处理、知识输出。","title":"元知识","modified":"20240408035910964"},
Expand Down

0 comments on commit c2e73b3

Please sign in to comment.