download galileo-1.2.img from <galileodebian.sourceforge.net>
used rpi-sd-card-builder to dd the image to the card.
something like:
screen /dev/tty.PL2303-0000103D 115200
#include <MicroView.h> | |
const int PLOT_PIN = 0; | |
int readingHistory[64]; | |
int currentIndex = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
uView.begin(); |
TAGUE: | |
Trust too trouble it: I will have your honour | |
And threst words, will not still bear the gods and cannot speak, | |
And now and take the which thy means to have him. | |
POMPEY: | |
If this be? | |
Here comes your tongue, sir, a strange o' the stand? | |
TRANIO: |
\documentclass[12pt]{article} | |
\usepackage{geometry} | |
\geometry{a4paper} | |
\usepackage[usenames,dvipsnames]{color} | |
\usepackage{hyperref} | |
\hypersetup{ | |
colorlinks, | |
citecolor=Violet, | |
linkcolor=Red, |
%% Pandoc template for creating NIME papers | |
%% Adapted from NIME paper template and Pandoc latex template. | |
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} | |
\usepackage{hyperref} | |
\makeatletter | |
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} | |
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} | |
\makeatother |
title: 'A Very Well-Written NIME Paper' author:
DOCNAME=nime-paper-input.md | |
OUTNAME=rendered-output | |
REFSFILE=references.bib | |
ARGS=--bibliography $(REFSFILE) | |
nime: | |
pandoc --template=nime.latex --self-contained --natbib --filter pandoc-fignos $(DOCNAME) -o $(OUTNAME).tex | |
sed -i '.bak' 's/\citep{/\cite{/g' $(OUTNAME).tex | |
pdflatex $(OUTNAME) | |
bibtex $(OUTNAME) |
from tensorflow.python.client import device_lib | |
def get_available_gpus(): | |
local_device_protos = device_lib.list_local_devices() | |
return [x.name for x in local_device_protos if x.device_type == 'GPU'] | |
get_available_gpus() |
#!/bin/bash | |
echo "$1" | |
videoname=${1%%.*} | |
#echo "$videoname" | |
ffmpeg -i $1 -c:v libx264 -b:v 2M -minrate 0.5M -preset fast -vf scale=1920:1080 -c:a aac -b:a 128K ${videoname}_1080.mp4 | |
ffmpeg -i $1 -c:v libx264 -b:v 0.5M -minrate 0.5M -preset fast -vf scale=960:540 -c:a aac -b:a 128K ${videoname}_540.mp4 | |
ffmpeg -i $1 -y -codec:a libmp3lame -ac 2 -ar 44100 -ab 64k -id3v2_version 3 -metadata title="$videoname" -metadata album_artist="Charles Martin" -metadata album="COMP2300 2020" -metadata genre="Vocal" -metadata date="2020" ${videoname}_audio.mp3 | |
echo "done, phew." |