Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| import urllib2 | |
| import os | |
| import urllib, urlparse | |
| import xml.etree.cElementTree as et | |
| e = et.ElementTree(file=urllib2.urlopen('https://standardebooks.org/opds/all')).getroot() | |
| print(e) | |
| print("parsing") | |
| for atype in e.iter('{http://www.w3.org/2005/Atom}link'): |
| #!/bin/bash | |
| ############################################# | |
| # | |
| # mp4-to-gif | |
| # | |
| # Convert MP4 videos to GIF images | |
| # Requires ffmpeg and imagemagick | |
| # | |
| # -g and --gifsicle options create a second optimised GIF for your consideration |
| #### | |
| # | |
| # Download all of the Standard eBooks catalogue from their OPDS feed. | |
| # | |
| # https://standardebooks.org/ | |
| # | |
| # Modified to download all files for each book except the SVG cover and to | |
| # organise the files in subfolders by Author > Book Title. | |
| # The original script downloads only the EPUB file for each book into the | |
| # working directory with no subfolders. |