View IOTArtAddCube.js
const request = require('request');
const IOTA = require('iota.lib.js');
var node = 'http://INSERT_POW_NODE_HERE:14265';
var seed = 'SEED'
var IOTArtCubeHelper = function() {
var cubes = null
var address = null
View iotaWalletGenAddresses.js
var genAddrId = genAddrId || undefined;
clearInterval(genAddrId);
var btnAddr = document.getElementById("generate-address-btn");
function genNewAddr()
{
if (btnAddr.innerText[2] != "D") return;
btnAddr.click();
setTimeout(function() { btnAddr.click(); }, 1000);
View gist:8812e7d964c4fe7d0cf381a5c1a71750
#!/usr/bin/env python
# zmqc: a small but powerful command-line interface to ZMQ.
## Usage:
# zmqc [-0] (-r | -w) (-b | -c) SOCK_TYPE [-o SOCK_OPT=VALUE...] address [address ...]
## Examples:
# zmqc -rc SUB 'tcp://127.0.0.1:5000'
#
# Subscribe to 'tcp://127.0.0.1:5000', reading messages from it and printing
View slowServoInit.cpp
/**
MIT License
Copyright (c) 2017 Maximilian Beck
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
View gist:fbe22f29ace6322bc986
// create a canvas element
var canvas1 = document.createElement('canvas');
var context1 = canvas1.getContext('2d');
context1.font = "Bold 20px Arial";
context1.fillStyle = "rgba(0,0,0,0.95)";
context1.fillText('Hello, world!', 0, 20);
document.getElementsByTagName('body')[0].appendChild(canvas1);
// canvas contents will be used for a texture
var texture1 = new THREE.Texture(canvas1)