Skip to content

Instantly share code, notes, and snippets.

View ThomasLengeling's full-sized avatar

Thomas Sanchez Lengeling ThomasLengeling

View GitHub Profile
for i, floor in enumerate(floors):
if i == 0:
# find global entity handle 1_D26_1
poly = floor['geometry_to_grid'].loc[floor['geometry_to_grid']['global_entity_handle'] == '1_D26_1'].copy()
# find the string that contains 1_D26_1 in floor_grid
other_poly = floor['floor_grid'].loc[floor['floor_grid']['global_entity_handle'].str.endswith('1_D26_1')].copy()
fig, ax = plt.subplots(figsize=(20,20))
{
"ABM":{
"active":true,
"display_name":"Animated Trips",
"toggle":{
"active":true,
"default":false,
"name":"activate"
},
"toggle_array":{
@ThomasLengeling
ThomasLengeling / motor.ino
Last active October 16, 2018 05:44
TD Motor tester
/*
* Motor Driver
* https://www.pololu.com/product/2990
*/
int i = 0;
int limit = 5 * 60 * 5 ;
int PWPHASE = 5;
int DGIOENABLE = 4;
@ThomasLengeling
ThomasLengeling / ubuntu16_tensorflow_cuda8.sh
Created May 30, 2017 23:38 — forked from ksopyla/ubuntu16_tensorflow_cuda8.sh
How to set up tensorflow with CUDA 8 cuDNN 5.1 in virtualenv with Python 3.5 on Ubuntu 16.04 http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/
# This is shorthened version of blog post
# http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/
# update packages
sudo apt-get update
sudo apt-get upgrade
#Add the ppa repo for NVIDIA graphics driver
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
int LED01 = 3;
int POT01 = A0;
int LED02 = 5;
int POT02 = A1;
int LED03 = 6;
int POT03 = A2;
int LED04 = 9;
int LED01 = 3;
int POT01 = A0;
int LED02 = 5;
int POT02 = A1;
int LED03 = 6;
int POT03 = A2;
int LED04 = 9;
struct Track {
ci::audio::BufferPlayerNodeRef bufferPlayer;
ci::audio::GainNodeRef gain;
ci::audio::MonitorNodeRef monitor;
ci::audio::Pan2dNodeRef pan;
ci::audio::ChannelRouterNodeRef mChannelRouterNode;
ci::audio::OutputDeviceNodeRef multichannelOutputDeviceNode;
Track(ci::audio::BufferPlayerNodeRef bufferPlayer)
: bufferPlayer(bufferPlayer)
int index2 = i * (JointType_Count+1) * 9;
int indexJoint = index2 + (JointType_Count+1) * 9 - 1;
if(rawData[indexJoint] == 1.0){
tracked = true;
colorIndex = i;
int j = 0;
int index1 = j * 9;
int type = (int)rawData[index2 + 0 + 8];
float promedio;
float value;
int counter = 0;
int numDatos = 50;
void loop(){
float inValue = analogRead(PIN);
promedio += inValue;
// Draws a triangle using low-level OpenGL calls.
import java.nio.*;
PGL pgl;
PShader sh;
int vertLoc;
int colorLoc;
float[] vertices;