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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import json | |
import arena # arena python library | |
from pylutron_wrapper.smartbridge import SmartBridgeWrapper # wrapper to https://github.com/gurumitts/pylutron-caseta | |
def light_toggle(light_sw_obj, light_sw_state, device_id): | |
"""toggles the lutron device""" |
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
# demo wall placement | |
# | |
import argparse | |
import time | |
import arena | |
import random | |
import os | |
import json | |
def createDemoWall(dname, location, rotation): |
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
{ | |
"nodes":[ | |
{ | |
"name":"Y1Q1", | |
"id":"Y1Q1" | |
}, | |
{ | |
"name":"Y1Q2", | |
"id":"Y1Q2" | |
}, |
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
{ | |
"nodes":[ | |
{ | |
"name":"Y1Q1", | |
"id":"Y1Q1" | |
}, | |
{ | |
"name":"Y1Q2", | |
"id":"Y1Q2" | |
}, |
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
{ | |
"nodes":[ | |
{ | |
"name":"Bodik", | |
"id":"Bodik" | |
}, | |
{ | |
"name":"Cabric", | |
"id":"Cabric" | |
}, |
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
{ | |
"nodes":[ | |
{ | |
"name":"Bodik", | |
"id":"Bodik" | |
}, | |
{ | |
"name":"Cabric", | |
"id":"Cabric" | |
}, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
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
Timestamp,r1,r2 | |
2019-04-17 15:38:11.526089916 -0400,[0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0], [0, 0, 0, |
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 3 columns, instead of 1. in line 6.
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
Timestamp,r1,r2 | |
2019-04-17 15:38:11.526089916 -0400,101A98921812101A2223A13190FB2CEB960BBA9B2893190B3B356B21A1437120B4E031A119533012,30303030303030303030303030303030203131213030303030303030303030303030303030303030 | |
2019-04-17 17:11:22.717816365 -0400,30303030303030303034343434303030303030303030303030303030303030303030303030303030,B0F8B038109290B0B2FC5EFE3652DC49323232F228213502C15752420D123AFA2877B9089619FEF8 | |
2019-04-17 15:09:04.794479923 -0400,808A82AA3B30703414532298FBCA4EB9BAB0B8383074FCB4B434F2D4AE2061F424023130B1B1A0B9,30303030303030303030303030303030303030303030303030703474343030303030303030303030 | |
2019-04-17 15:11:45.184113595 -0400,F07A747CD8DE3E38383A1810287461663020302001043305111103204155722044012466B7B1A478,30301010323030303030303030303030303030303030303030303030303030303030303030303030 | |
2019-04-17 20:11:52.020734817 -0400,805A303228723128B023793059164E7612019065D39BB41A38B132F8A81012723443920012513812,30303030303030303030303030303030303030303030303030303030303030303020313130303030 | |
2019-04-17 18:03:1 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <wait.h> | |
#define N 4 | |
void main() | |
{ | |
pid_t pid[N]; |
NewerOlder