Skip to content

Instantly share code, notes, and snippets.

View riccardolardi's full-sized avatar
🛹

Riccardo Lardi riccardolardi

🛹
View GitHub Profile
[22143.845950] usb 2-6: new SuperSpeed USB device number 5 using xhci_hcd
[22143.859274] usb 2-6: New USB device found, idVendor=1058, idProduct=25a2
[22143.859283] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[22143.859289] usb 2-6: Product: Elements 25A2
[22143.859294] usb 2-6: Manufacturer: Western Digital
[22143.859299] usb 2-6: SerialNumber: 575839314139364438375546
for (let i = 1; i < artnetOptions.channels + 1; i++) {
console.log('status: switching on valve ' + i)
if (i > 1) artnet.set(i - 1, 0)
artnet.set(i, 255, function() {
// iterate
})
}
artnet.close()
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: '"Source Code Pro", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
$(window).resize(function() {
// window dimenstions
var windowWidth = $(window).width();
var windowHeight = $(window).height();
// figure dimensions
var figureWidth = $('#detailScreen figure').width();
var figureHeight = $('#detailScreen figure').height();