Last updated: 01/21/2021
These tips came from Google's Polymer team, the originator and creator of web components. These patterns and architecture can be applied to any re-usable component regardless if it's a true webcomponent or not.
Videos:
root@old-dash:/etc# cat -e motd | |
^[[2J$ | |
^[[34m$ | |
. $ | |
.vir. d$b$ | |
.d$$$$$$b. .cd$$b. .d$$b. d$$$$$$$$$$$b .d$$b. .d$$b.$ | |
$$$$( )$$$b d$$$()$$$. d$$$$$$$b Q$$$$$$$P$$$P.$$$$$$$b. .$$$$$$$b.$ | |
Q$$$$$$$$$$B$$$$$$$$P" d$$$PQ$$$$b. $$$$. .$$$P' `$$$ .$$$P' `$$$$ | |
"$$$$$$$P Q$$$$$$$b d$$$P Q$$$$b $$$$b $$$$b..d$$$ $$$$b..d$$$$ | |
d$$$$$$P" "$$$$$$$$ Q$$$ Q$$$$ $$$$$ `Q$$$$$$$P `Q$$$$$$$P$ |
localhost kvm # cat /mnt/temp/home/one/.ssh/config | |
Host 162.242.145.217 | |
ForwardAgent yes | |
User one | |
ProxyCommand ssh -q -A -W %h:%p cbast1.dfw1.corp.foo.com | |
Host cbast1.*.corp.foo.com | |
ControlPersist yes | |
ControlMaster auto | |
ControlPath /tmp/ssh-%r@%h:%p |
files=./images/* | |
while read -r file; | |
do | |
grep -l "$file" -R * | grep -v MarketPlaceLog | grep -v cache > /dev/null | |
if [ $? -eq 0 ] | |
then | |
echo $file | |
fi |
while read -r file; | |
do | |
grep -l "$file" -R * | grep -v MarketPlaceLog | grep -v cache > /dev/null | |
if [ $? -eq 0 ] | |
then | |
echo $file | |
fi | |
done < <(ls ./images) |
const buildScriptFile = (appName, gulp, plugins, buildFiles) | |
=> gulp.src(buildFiles) | |
.pipe(plugins.sourcemaps.init()) | |
.pipe(babel({ | |
presets: ['env'] | |
}) | |
.pipe(plugins.concat(`${appName}.min.js`)) | |
//.pipe(plugins.uglify()) | |
.pipe(plugins.size({ | |
showFiles: true, |
/** | |
* @author ebidel@ (Eric Bidelman) | |
* License Apache-2.0 | |
*/ | |
/** | |
* Finds all elements on the page, inclusive of those within shadow roots. | |
* @param {string=} selector Simple selector to filter the elements by. e.g. 'a', 'div.main' | |
* @return {!Array<string>} List of anchor hrefs. | |
*/ |
Last updated: 01/21/2021
These tips came from Google's Polymer team, the originator and creator of web components. These patterns and architecture can be applied to any re-usable component regardless if it's a true webcomponent or not.
Videos:
Original: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
This is intended as a quick reference and showcase. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
Note that there is also a Cheatsheet specific to Markdown Here if that's what you're looking for. You can also check out more Markdown tools.
" EXAMPLE SETUP | |
" | |
" Show the syntax group name of the item under cursor. | |
" map -a :call SyntaxAttr()<CR> | |
function! SyntaxAttr() | |
let synid = "" | |
let guifg = "" | |
let guibg = "" | |
let gui = "" |
#downloadJSPdf() { | |
const loadJspdf = (() => { | |
async function actuallyLoad() { | |
const script = document.createElement('script'); | |
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js'; | |
await new Promise((resolve, reject) => { | |
script.addEventListener('error', reject); | |
script.addEventListener('load', resolve); | |
document.head.appendChild(script); |