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(); | |
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) { |
| #!/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 |
| <?xml version='1.0' encoding='utf-8'?> | |
| <?grc format='1' created='3.7.8'?> | |
| <flow_graph> | |
| <timestamp>Tue Aug 25 19:04:21 2015</timestamp> | |
| <block> | |
| <key>options</key> | |
| <param> | |
| <key>author</key> | |
| <value></value> | |
| </param> |
# https://unix.stackexchange.com/questions/5010/how-can-i-count-the-number-of-different-characters-in-a-file
# works for linux. There is a variation for MacOS in the link ^
sed 's/\(.\)/\1\n/g' text.txt | sort | uniq -c # sort -nr # uncomment this to sort the list by frequency