This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
METHOD='md5' | |
usage() { | |
echo "Usage: cpsm [-m METHOD] filename [CHECKSUM]" | |
exit 1 | |
} | |
[ $# -eq 0 ] && usage | |
while getopts :m: OPTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip list --outdated --format=columns | awk 'NR > 2 {print $1}' | sudo -H xargs pip install --upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <thread> | |
#include <dispatch/dispatch.h> // macOS only | |
#include <immintrin.h> | |
template<typename TimeT = std::chrono::milliseconds> | |
struct measure | |
{ | |
template<typename F, typename ...Args> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** preview.el.orig 2018-06-11 14:08:50.000000000 -0400 | |
--- preview.el 2018-06-11 15:35:38.000000000 -0400 | |
*************** | |
*** 180,186 **** | |
(close preview-gs-close)) | |
(tiff (open preview-gs-open) | |
(place preview-gs-place) | |
! (close preview-gs-close))) | |
"Define functions for generating images. | |
These functions get called in the process of generating inline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Convert any YUV to any range or bitdepth | |
""" | |
import argparse | |
DATA_TABLE = { | |
("tv", 8): [[16, 128, 128], [219, 224, 224]], | |
("tv", 10): [[64, 512, 512], [876, 896, 896]], | |
("tv", 16): [[4096, 32768, 32768], [56064, 57344, 57344]], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vapoursynth as vs | |
import sys | |
sys.path.insert(0, '.') | |
import mvsfunc as mvf | |
import havsfunc as haf | |
import inftools as inf | |
from nnedi3_resample import nnedi3_resample | |
core = vs.get_core() | |
source = \ |