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
#!/bin/bash | |
# | |
# For reference: | |
# VT330/VT340 Programmer Reference Manual | |
# Volume 2: Graphics Programming | |
# | |
# | |
# This script plots vector graphics in the terminal emulator mlterm when mlterm is compiled with ./configure --with-tools | |
# The graph is generated by gnuplot compiled with ./configure --with-regis | |
# |
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 TwoNibbles | |
{ | |
byte v1:4; | |
byte v2:4; | |
}; | |
union Nibble | |
{ | |
TwoNibbles nibble; | |
byte Nibble[sizeof(TwoNibbles)]; |
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
/* | |
Rotary Encoder - Polling Example | |
The circuit: | |
* encoder pin A to Arduino pin 2 | |
* encoder pin B to Arduino pin 3 | |
* encoder ground pin to ground (GND) | |
*/ | |
#include <Arduino.h> | |
#include <U8g2lib.h> |
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
apply plugin: 'java' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile 'com.tinkerpop.blueprints:blueprints-neo4j-graph:2.6.0', | |
'org.neo4j:neo4j-lucene-index:2.1.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
var express = require('express'); | |
var io = require('socket.io'); | |
var server = require('http'); | |
var dgram = require("dgram"); | |
var app = express() | |
, server = require('http').createServer(app) | |
, io = io.listen(server) | |
, server2 = dgram.createSocket("udp4"); | |
app.use(express.static(__dirname + '/public')); |
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
// Sensors begin here | |
var __device_sensors_service_entry = { | |
"name": null, | |
"version": null, | |
"proto": __device_sensors, | |
"descriptor": __device_sensors_descriptor, | |
"providers": [{ | |
"descriptor": __sp_sensors_descriptor, | |
"instance": __sp_sensors_instance | |
}] |
NewerOlder