Skip to content

Instantly share code, notes, and snippets.

View pedroduartecosta's full-sized avatar
🏠
Working from home

Pedro Costa pedroduartecosta

🏠
Working from home
View GitHub Profile
tensorflow for poets:
https://codelabs.developers.google.com/codelabs/tensorflow-for-poets/
Virtual Box -> Network -> port forward -> 6006 - 6006 and 8888 - 8888
docker run -it -p 6006:6006 -p 8888:8888 -v $HOME/tf_files:/tf_files gcr.io/tensorflow/tensorflow:latest-devel
python /tensorflow/tensorflow/models/image/imagenet/classify_image.py

Open a terminal on the folder with the files.

cd path/to/your/app

Then on the terminal run:

php -S localhost:8000
<dsx>
<scene root="plane" axis_length="1"/>
<views default="1">
<perspective id="1" near="10" far="500" angle="0">
<from x="10" y="10" z="10"/>
<to x="15" y="15" z="15"/>
</perspective>

Data Connection Protocol

We used a script "port.sh" that can virtual emulate a connection through a serial port, you can execute that script by running:

sh port.sh

It's recomended to install socat to use this script.