Skip to content

Instantly share code, notes, and snippets.

Chris Riebschlager riebschlager

Block or report user

Report or block riebschlager

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@riebschlager
riebschlager / td_json.py
Created Feb 11, 2019
Working with JSON in TouchDesigner
View td_json.py
# me - this DAT.
#
# dat - the changed DAT
# rows - a list of row indices
# cols - a list of column indices
# cells - the list of cells that have changed content
# prev - the list of previous string contents of the changed cells
#
# Make sure the corresponding toggle is enabled in the DAT Execute DAT.
#
View search.js
this.eventSearchObj = {
ObjectType: 'Event',
CvSearchObject: {
attributes: {
SearchType: 'AndSearch',
xmlns: 'http://schemas.cvent.com/api/2006-11'
},
Filter: [
{
Field: 'EventStartDate',
View cerner-lights-protocol.js
// The lighting controller expects a JSON-formatted array of lights states in the following format:
[
{
"lightId": Number,
"state": Boolean
}
];
// Sample usage: Turning on lights 1, 2 and 3. Turning off light 4.
View hotspots.js
const hotspots = [
{
name: 'Eglise Saint-Eustache',
x: 0,
y: 0,
images: ['eglise-saint-eustache-1.jpg', 'eglise-saint-eustache-2.jpg'],
dateConstructed: '1532-1632',
beforeNapoleon:
'Named after Saint Eustace, this Catholic Church has been used for traditional services since its construction, except during the Revolution when it was desecrated and looted.',
connectionToNapoleon:
View new.json
{
"editor.fontFamily": "DejaVu Sans Mono",
"workbench.colorTheme":"Default Dark+",
"prettier.tabWidth": 4,
"prettier.singleQuote": true,
"editor.wordWrapColumn": 0,
"editor.minimap.enabled": false,
"git.enableSmartCommit": true,
"git.autofetch": true,
"explorer.confirmDelete": false,
View csv_to_fixture.py
# csv2json.py
#
# Copyright 2009 Brian Gershon -- briang at webcollective.coop
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
View list-of-unique-ids.js
let ids = [];
const fs = require('fs');
if(!String.prototype.padStart) {
String.prototype.padStart = function padStart(targetLength, padString) {
targetLength = targetLength >> 0;
padString = String(padString || ' ');
if(this.length > targetLength) {
return String(this);
View guitar.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, division
from pygame.locals import *
import os
import pygame
import random
import serial
View GuitarTouch.ino
#include <MPR121.h>
#include <Wire.h>
#define numElectrodes 6
void setup()
{
Serial.begin(9600);
while (!Serial);
Wire.begin();
View hyvee-new.ino
const int sensorPin = 9; // PW socket on sensor board
const int relayPin = 10; //
const int threshold = 48; //
const bool DEBUG = false;
int ticks = 0;
void setup() {
Serial.begin(9600);
You can’t perform that action at this time.