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
// Self-invoking anonymous function to encapsulate the code and avoid global scope pollution | |
javascript: (function() { | |
// Define the vault and folder names | |
var vaultName = "ADD YOUR VAULT NAME"; | |
var folderName = "ADD YOUR FOLDER NAME"; | |
// Function to get the description from the meta tag | |
function getDescription() { | |
var metaDescription = document.querySelector('meta[name="description"]'); | |
return metaDescription ? metaDescription.getAttribute('content') : ''; |
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: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
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
... | |
[alias] | |
rb = !sh -c 'node ~/bin/recbranch.js' | |
... |
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
#!/bin/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |
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
########## Install NGINX ############## | |
# Install software-properties-common package to give us add-apt-repository package | |
sudo apt-get install -y software-properties-common | |
# Install latest nginx version from community maintained ppa | |
sudo add-apt-repository ppa:nginx/stable | |
# Update packages after adding ppa |
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
{ | |
"workbench.iconTheme": "vscode-icons", | |
"workbench.colorTheme": "Cobalt2", | |
"workbench.startupEditor": "none", | |
"editor.minimap.enabled": false, | |
"editor.formatOnSave": true, | |
"editor.fontSize": 18, | |
"editor.fontLigatures": true, | |
"editor.lineHeight": 25, | |
"editor.letterSpacing": 0.5, |
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
code --install-extension 2gua.rainbow-brackets | |
code --install-extension aaron-bond.better-comments | |
code --install-extension abusaidm.html-snippets | |
code --install-extension Angular.ng-template | |
code --install-extension anseki.vscode-color | |
code --install-extension BriteSnow.vscode-toggle-quotes | |
code --install-extension christian-kohler.npm-intellisense | |
code --install-extension christian-kohler.path-intellisense | |
code --install-extension cmstead.jsrefactor | |
code --install-extension CoenraadS.bracket-pair-colorizer |
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
function testng | |
ng build --prod | |
http-server -c-1 -p 4200 ./dist | |
end |
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
// Check if user agent is from Apple | |
if(/iPad|iPhone|iPod/.test(navigator.userAgent)){ | |
// actions | |
} else { | |
// Maybe is Android ;) | |
} |
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
<h1>Poetry Workshops</h1> | |
<p>We will be conducting a number of poetry workshops and symposiums throughout the year.</p> | |
<p>Please note that the following events are free to members:</p> | |
<ul> | |
<li>A Poetic Perspective</li> | |
<li>Walt Whitman at War</li> | |
<li>Found Poems and Outsider Poetry</li> | |
</ul> | |
<table> | |
<tr> |
NewerOlder