How to use:
./wordle.sh
Or try the unlimit mode:
# Example usage: | |
# python make_crop_labels.py --input_path data/images --output_path --data/cropped_images --csv_path data/crops.csv | |
# Controls: | |
# scroll to change crop size, mouse to aim the crop, left click to crop image and move to next, x to skip to the next image. | |
# The script is pretty messy since I quickly hacked it together with little regard for quality, but it works. | |
import pygame | |
import argparse |
const defaultTheme = require('tailwindcss/defaultTheme'); | |
module.exports = { | |
purge: [ | |
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', | |
'./storage/framework/views/*.php', | |
'./resources/views/**/*.blade.php', | |
'./resources/js/**/*.vue', | |
], | |
The included script 'widevine-flash_armhf.sh' fetches a ChromeOS image for ARM and extracts the Widevine and Flash binaries, saving them in a compressed archive. Since it downloads a fairly large file (2Gb+ on disk after download) it is recommended that you run the script on a raspberry that has plenty of disk space.
The files in the compressed archive are copied to the folder /usr/lib/chromium-browser/
To run the file just type the following:
sudo ./widevine-flash_armhf.sh
Check out this tutorial: https://lemariva.com/blog/2020/06/raspberry-pi-amazon-prime-netflix-and-drm-solution
import argparse | |
import importlib | |
import logging | |
import os | |
import sys | |
def main(args=None): | |
scriptname = os.path.basename(__file__) | |
parser = argparse.ArgumentParser(scriptname) | |
levels = ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL') |
#!/bin/bash | |
# Bash script to control a TPLink HS110 or HS100 smart plug. | |
# Usage: $0 -u username -p password -d "?" => list devices, and should output token. | |
# Usage: $0 -t <token> -d <device_id> -o off => turn off.. | |
# Usage: $0 -t <token> -d <device_id> -o off => turn on.. | |
# Default action is to turn the first device found off. |
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log
as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()
This is the Gist the FPQ bootcamp in New York, 08.-11. May 2017 (http://fpq.io)
Additional files (eg Jupyter Notebooks) are found under:
from matplotlib import pyplot as plt | |
import cv2 | |
img = cv2.imread('/Users/mustafa/test.jpg') | |
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) | |
plt.imshow(gray) | |
plt.title('my picture') | |
plt.show() |
#!/bin/bash | |
# file: ttfb.sh | |
# curl command to check the time to first byte | |
# ** usage ** | |
# 1. ./ttfb.sh "https://google.com" | |
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com" | |
curl -o /dev/null \ | |
-H 'Cache-Control: no-cache' \ | |
-s \ |