In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
In addition to the Storybook for React setup, you'll also need to install these packages:
npm i -D @babel/core babel-loader css-loader style-loader
// get an image blob from url using fetch | |
let getImageBlob = function(url){ | |
return new Promise( async resolve=>{ | |
let resposne = await fetch( url ); | |
let blob = resposne.blob(); | |
resolve( blob ); | |
}); | |
}; | |
// convert a blob to base64 |
<input type="number" step="1" min="1" max="999" maxlength="3" name="number" inputmode="numeric" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"> |
#!/usr/bin/env python3 | |
import argparse | |
from pytube import YouTube | |
def download(url): | |
def progress_callback(stream, chunk, file_handle, bytes_remaining): | |
# this function is called by download process... do not call directly! | |
total_size = stream.filesize | |
downloaded_size = total_size - bytes_remaining |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
Enlaces con otros ficheros compartidos en los comentarios: