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:
one@localhost ~/material-web | |
% npm run storybook | |
> @material/web@1.0.0-pre.13 storybook | |
> storybook dev -p 6006 | |
@storybook/cli v7.0.27 | |
info => Starting manager.. | |
info Addon-docs: using MDX2 |
#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); |
" 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 = "" |
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:
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 |
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.
/** | |
* @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. | |
*/ |
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, |
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) |
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 |