Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
METHOD='md5'
usage() {
echo "Usage: cpsm [-m METHOD] filename [CHECKSUM]"
exit 1
}
[ $# -eq 0 ] && usage
while getopts :m: OPTION
pip list --outdated --format=columns | awk 'NR > 2 {print $1}' | sudo -H xargs pip install --upgrade
#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>
@inflation
inflation / retina.patch
Created June 12, 2018 00:03
Retina support for auctex of emacs-osx-port
*** 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
#!/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]],
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 = \