zotero-key | zt-attachments | title | citekey | authors | |||
---|---|---|---|---|---|---|---|
JVKLEV5L |
|
The poetry of Du Fu |
ΩThe-poetry-of-du-fu_Du-F_2015 |
|
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
/* API specific Feature To ONLY TAKE API BETWEEN = and --- */ | |
/* NAME: SELECTED-TRANSCLUSION-PREVIEW CSS SNIPPET */ | |
.popover.hover-popover .markdown-embed.is-loaded | |
.markdown-preview-view.markdown-rendered | |
.markdown-preview-sizer.markdown-preview-section | |
div:has(> h1[data-heading="-"]) ~ div:not(:has(h1[data-heading="="])) { | |
display: none; | |
} | |
.popover.hover-popover .markdown-embed.is-loaded | |
.markdown-preview-view.markdown-rendered |
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
/* ## Cornell Callout */ | |
.markdown-source-view.mod-cm6 | |
.cm-contentContainer { | |
container-type: inline-size; | |
} | |
:root { | |
--ui-cornell-width: 20vw; | |
} |
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
toggle = "!sh -c 'CONFIG_NAME=$(git config user.name) && if [ $CONFIG_NAME = 'MY_PERSONAL_NAME' ]; then git config user.email MY_WORK_EMAIL\ | |
&& git config user.name MY_WORK_NAME;\ | |
else git config user.email PERSONAL_EMAIL\ | |
&& git config user.name PERSONAL_NAME;fi && echo $(git config user.name)'" |
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
: << 'END_COMMENT' | |
Place this function in your ~/.p10k.zsh file | |
1) Detects your poetry env, (whehter or not you've entered the directory of your poetry app) | |
2) Detects whether or not shell is active. (POETRY_ACTIVE) | |
3) append my_poetry like so: | |
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( | |
... | |
my_poetry | |
) |
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
# @usage checkiff master | |
# @param {posix1} branchname | |
# @desc notifies you whether local master is the same as origin/master | |
# (only works in zshell, in bash the piping generaes a subshell) | |
function checkdiff() { | |
git fetch; | |
git diff $1 origin/$1 | wc -l | {read wc}; | |
if (test $wc -ne "0") | |
then | |
echo $wc |
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
console.clear(); | |
function DomManipulator() { | |
this.error = null; | |
this.active = false; | |
this.toggleActive = function toggleActive(shouldSetActiveSetInactive) { | |
// is this a static method? | |
if (typeof shouldSetActiveSetInactive === 'boolean') { | |
this.active = shouldSetActiveSetInactive; | |
} else { |
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
license: mit |
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
license: mit |
NewerOlder