Open vimrc:
vim ~/.vim/vimrcAdd Vundle plugin to vimrc:
Plugin 'prettier/vim-prettier'| .theme-dark { | |
| --dataview-key: #ffc94a; | |
| --dataview-value: #ffffff; | |
| } | |
| .theme-light { | |
| --dataview-key: #000; | |
| --dataview-value: #000; | |
| } |
| ```dataviewjs | |
| // find dates based on format [[YYYY-MM-DD]] | |
| const findDated = (task)=>{ | |
| if( !task.completed ) { | |
| task.link = " " + "[[" + task.path + "|*]]"; | |
| task.date=""; | |
| const found = task.text.match(/\[\[([12]\d{3}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01]))\]\]/); | |
| if(found) task.date = moment(found[1]); | |
| return true; | |
| } |
| //v0.3 | |
| //To apply TODO filter, use Shift + Click on the query syntax when a query is loaded with results | |
| //Use this link to see GIF of DEMO: https://user-images.githubusercontent.com/64155612/95497690-9c0f8680-0957-11eb-94a7-e0cd49d62a06.gif | |
| //The goal of this script is to filter out TODOs that only show up because they were added on daily notes page | |
| //Mainly it is if you want to find overdue tasks, like from the last week, by default a TODO due next week will still | |
| //show up if you added that TODO on a daily notes page from last week (within the between range) | |
| //Resources about the script: | |
| //For detailed discussion, see this Slack thread: https://roamresearch.slack.com/archives/C012WK8E9DK/p1601992542022100 | |
| //Here is my github repo: https://github.com/GitMurf/roam-javascript |
Open vimrc:
vim ~/.vim/vimrcAdd Vundle plugin to vimrc:
Plugin 'prettier/vim-prettier'| import sys | |
| def j(lineno): | |
| frame = sys._getframe().f_back | |
| called_from = frame | |
| def hook(frame, event, arg): | |
| if event == 'line' and frame == called_from: | |
| try: | |
| frame.f_lineno = lineno |
Install on Mac using brew install tmux and start with tmux
See help (list of commands) with Control-b ? key combination. Leave help view by pressing q key.
From now on use Control-b (aka C-b) to start all tmux commands (C-b is called command prefix
and can be changed, see tmux.config options).
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New new -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |