Use A3C (asynchronous advantage actor-critic) written in TensorFlow. Training code, model & evaluation code at this repo
Gist doesn't have notifications, please use repo issues to discuss.
// make a sphere | |
ofSpherePrimitive sph; | |
sph.set(100, 10); | |
ofMesh s = sph.getMesh(); | |
// grab the current camera | |
// this is to figure out where a camera "should" be, ie, for this overall picture where is the camera. | |
ofCamera mainCam; | |
mainCam.setupPerspective(); | |
module.exports = { | |
"DEB": [ | |
{ | |
"signature": "2020", | |
"size": 2, | |
"offset": 58 | |
} | |
], | |
"AR": [ | |
{ |
Use A3C (asynchronous advantage actor-critic) written in TensorFlow. Training code, model & evaluation code at this repo
Gist doesn't have notifications, please use repo issues to discuss.
#----- Create a Docker for cross-compilation -----# | |
mkdir build && cd $_ | |
docker run -it --rm -v `pwd`:/build golang:1.8.3 /bin/bash | |
#----- Inside docker -----# | |
go get github.com/elastic/beats | |
cd /go/src/github.com/elastic/beats/filebeat/ | |
git checkout v5.6.3 | |
GOARCH=arm go build | |
cp filebeat /build | |
exit |
<?php | |
// quick and dirty argument parsing | |
foreach ($argv as $arg) { | |
if ($arg == '-f') { | |
define('FOLLOW', true); | |
} | |
if ($arg == '-h') { | |
define('HISTOGRAM', true); | |
} |
function termFreqMap(str) { | |
var words = str.split(' '); | |
var termFreq = {}; | |
words.forEach(function(w) { | |
termFreq[w] = (termFreq[w] || 0) + 1; | |
}); | |
return termFreq; | |
} | |
function addKeysToDict(map, dict) { |
Headless reinstall and update https://raspberrypi.stackexchange.com/a/57023
#!/bin/bash | |
# A script for shutting down an idle VM with GPUs attached when they are idle and there | |
# are no users logged in. Add the below crontab via `crontab -e` to run this script every | |
# 10 minutes and append its output to a log: | |
# | |
# */10 * * * * ~/shutdown_idle_gpu_machine.sh >> ~/shutdown_idle_gpu_machine.log 2>&1 | |
# | |
# This script should live in your HOME directory. Your user should have sudoer privileges. |
#!/bin/bash | |
# ./hackrf_baudline.sh <frequency> <samplerate> <IFgain> <BBgain> | |
FFT=$((${2}/1000000*2048)) | |
mkfifo /tmp/fifo | |
hackrf_transfer -r /tmp/fifo -l $3 -g $4 -f $1 -s $2 >> /dev/null & | |
cat /tmp/fifo | baudline -stdin -quadrature -record -channels 2 -flipcomplex -format s8 -overlap 100 -memory 512 -fftsize ${FFT} -basefrequency $1 -samplerate $2 && rm /tmp/fifo |