Skip to content

Instantly share code, notes, and snippets.

View eelcocramer's full-sized avatar

Eelco eelcocramer

View GitHub Profile

Keybase proof

I hereby claim:

  • I am eelcocramer on github.
  • I am cojack (https://keybase.io/cojack) on keybase.
  • I have a public key ASC9uwJH0HWm_riVSxRp6yX0PwymvOqt_ktIlHE8AjqHSQo

To claim this, I am signing this object:

@eelcocramer
eelcocramer / plantuml
Last active February 15, 2018 05:29
Shell script to launch plantuml
#!/bin/sh
# PlantUML Launcher
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This script distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
@eelcocramer
eelcocramer / arduino-bluetooth-led.ino
Last active April 14, 2022 11:52
Arduino LED controlled over Bluetooth with NodeJS
// This code uses the SoftwareSerial library.
// It can be obtained here: http://arduino.cc/en/Reference/SoftwareSerial
unsigned int timeout=0;
unsigned char state=0;
char val; // variable to receive data from the serial port
int ledpin = 13; // LED connected to pin 13
// Timer2 service
@eelcocramer
eelcocramer / echo_bot_sasl_external.js
Created April 23, 2012 08:21
SASL EXTERNAL Client certificate based authorization using node-xmpp
#!/usr/bin/env node
/**
* Echo Bot - the XMPP Hello World
*
* Copied from the echo_bot.js example from node-xmpp.
**/
var xmpp = require('../lib/node-xmpp');
var argv = require('optimist').argv;
var fs = require('fs');