Based on this post on stack exchange.
# install Pygments
sudo easy_install Pygments # or brew install pygments
# install gihub style syntax
git clone git://github.com/hugomaiavieira/pygments-style-github.git
cd pygments-style-github
import re | |
import os | |
from dateutil.parser import parse | |
path = '' #insert file path to your vault here | |
### Convert date format in file content | |
for root, dirs, files in os.walk(path): | |
files = [f for f in files if re.match(r'.*\.md', f)] # only keep files end with `.md` |
Based on this post on stack exchange.
# install Pygments
sudo easy_install Pygments # or brew install pygments
# install gihub style syntax
git clone git://github.com/hugomaiavieira/pygments-style-github.git
cd pygments-style-github
You can add this to Roam using {{[[roam/js]]}}
Grab the code in youtube-timestamps.js
and drop it in a javascript code block:
```javascript```
You can have timestamps at the beginning of any nested block. H:MM:SS
You can use the ctrl+shift+y
hotkey (currently assumes you have Roam42 installed, let me know if you'd prefer I drop that requirement) to grab the current timestamp of the video you're cursor is nested under and add it to the beginning of your block.
-- Detect if the Safari window exists | |
tell application "System Events" | |
if not (exists (front window of process "Safari")) then | |
return | |
end if | |
end tell | |
-- Assume the frontmost Finder window (or the Desktop) | |
-- is where we want to store the script. | |
try |