This file contains hidden or 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
movtogif () { | |
tempfile=.mov-to-gif-$(date +"%s").png | |
ffmpeg -v quiet -stats -y -i $1 -vf fps=5,palettegen $tempfile | |
ffmpeg -v quiet -stats -i $1 -i $tempfile -filter_complex "fps=12.5,scale=720:-1,paletteuse" "${1%.mov}.gif" | |
rm $tempfile | |
} |
This file contains hidden or 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
#!/bin/bash | |
# Function to display help information | |
help() { | |
echo "Usage: $0 in_file out_file [screen|ebook|printer]" | |
echo | |
echo "Compress a PDF file using Ghostscript." | |
echo | |
echo "Arguments:" | |
echo " in_file The input PDF file to be compressed." |
This file contains hidden or 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
def blums(x, y=None, sig_lev=0.01): | |
""" | |
Performs Blum's test for independence. | |
Blum, J. R., et al. “Distribution Free Tests of Independence Based on the | |
Sample Distribution Function.” The Annals of Mathematical Statistics, vol. | |
32, no. 2, 1961, pp. 485–498. JSTOR, www.jstor.org/stable/2237758. | |
Parameters | |
---------- |