Follow the build instructions here: PelkaRepo/pcgen-docker
Follow the instructions here: Running GUI’s with Docker on Mac OS X
In a terminal:
import os | |
basepath = '/path/to/files' | |
extensions = ('.mp4', '.avi', '.mkv', '.mov') | |
for (dirpath, dirnames, filenames) in os.walk(basepath): | |
for filename in filenames: | |
basename, ext = os.path.splitext(filename) |
Follow the build instructions here: PelkaRepo/pcgen-docker
Follow the instructions here: Running GUI’s with Docker on Mac OS X
In a terminal:
import cv2 # opencv | |
import numpy as np | |
font_scale = 1.5 | |
font = cv2.FONT_HERSHEY_PLAIN | |
# set the rectangle background to white | |
rectangle_bgr = (255, 255, 255) | |
# make a black image | |
img = np.zeros((500, 500)) |
Make a new (empty) Chrome bookmark, and copy the following to the URL
field:
javascript:(function(){var output = ""; var mlist = document.getElementsByClassName('MusicCartReviewListFullPage')[0]; for (ii = 0; ii < mlist.children.length; ii += 2) { var item = mlist.children[ii]; try { var entry = item.getElementsByClassName('a-fixed-left-grid-inner')[0]; var img_info = entry.children[0].firstElementChild.firstElementChild; var img_url = img_info.getAttribute('src'); output += img_info.outerHTML; var album_info = entry.children[1]; output += '</br>'; output += album_info.children[0].firstElementChild.outerHTML; output += '</br>'; output += album_info.children[2].firstElementChild.outerHTML; output += '</br>'; output += '</br>'; } catch(err) { alert(err.message); console.log(ii); break; } } document.write(output)})();
# Get a YouTube playlist as a list of URLs | |
# | |
# Assumes `youtube-dl` is installed | |
# | |
# python3 youtube_list.py | |
import sys | |
import json | |
from subprocess import check_output |
# first: mkdir user && cd user && cp /path/to/get_gists.py . | |
# python3 get_gists.py user | |
import requests | |
import sys | |
from subprocess import call | |
user = sys.argv[1] | |
r = requests.get('https://api.github.com/users/{0}/gists'.format(user)) |