Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| # Based on Waveshare's epd5in65f.py demo. Copyright notice at end. | |
| import sys | |
| import os | |
| picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic') | |
| libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib') | |
| if os.path.exists(libdir): | |
| sys.path.append(libdir) |
Thought experiment:
Which k primitives can be implemented as k-strings, reasonably efficiently, with a handful of 'native' built-ins?
Not verified to be in dependency order yet... may depend on the choice of 'fundamental' primitives. Need to do speed tests too.
k9 syntax (download via Shakti). Got a better way to write one? Feel free to comment, you'll be credited!
| #! /usr/bin/env ruby | |
| # NOTE: Requires Ruby 2.1 or greater. | |
| # This script can be used to parse and dump the information from | |
| # the 'html/contact_info.htm' file in a Facebook user data ZIP download. | |
| # | |
| # It prints all cell phone call + SMS message + MMS records, plus a summary of each. | |
| # | |
| # It also dumps all of the records into CSV files inside a 'CSV' folder, that is created |
| #!/usr/bin/env python | |
| import argparse | |
| import matplotlib.pyplot as plt | |
| import librosa | |
| import numpy as np | |
| import os | |
| from progressbar import ProgressBar | |
| parser = argparse.ArgumentParser( |
raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<SESSION>
you can tweak -b and -fps to your liking. the settings above work well for 1080p. by not specifying width or height we get the full 1920x1080 resolution from the raspi camera
| #!/bin/bash | |
| # | |
| # script to show word-style "track changes" from a previous git revision | |
| # | |
| if [ $# -lt 2 ] | |
| then | |
| echo "usage: $0 <rev> <maintex>" | |
| echo " rev is the prefix of a git revision hash" | |
| echo " see 'git log' for revision hashes" |