This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ABM":{ | |
"active":true, | |
"display_name":"Animated Trips", | |
"toggle":{ | |
"active":true, | |
"default":false, | |
"name":"activate" | |
}, | |
"toggle_array":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Motor Driver | |
* https://www.pololu.com/product/2990 | |
*/ | |
int i = 0; | |
int limit = 5 * 60 * 5 ; | |
int PWPHASE = 5; | |
int DGIOENABLE = 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LED01 = 3; | |
int POT01 = A0; | |
int LED02 = 5; | |
int POT02 = A1; | |
int LED03 = 6; | |
int POT03 = A2; | |
int LED04 = 9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int LED01 = 3; | |
int POT01 = A0; | |
int LED02 = 5; | |
int POT02 = A1; | |
int LED03 = 6; | |
int POT03 = A2; | |
int LED04 = 9; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float promedio; | |
float value; | |
int counter = 0; | |
int numDatos = 50; | |
void loop(){ | |
float inValue = analogRead(PIN); | |
promedio += inValue; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Draws a triangle using low-level OpenGL calls. | |
import java.nio.*; | |
PGL pgl; | |
PShader sh; | |
int vertLoc; | |
int colorLoc; | |
float[] vertices; |
NewerOlder