Skip to content

Instantly share code, notes, and snippets.

View jongio's full-sized avatar

Jon Gallant jongio

View GitHub Profile
@jongio
jongio / README.md
Last active July 4, 2017 12:02 — forked from brattonc/README.md
D3 Liquid Fill Gauge

Liquid Fill Gauge v1.1 - 7/14/2015

Changes:

  • Added support for updating the gauge value after loading is complete. The loadLiquidFillGauge method now returns an object with an update method which allows the gauge value to be changed. Click any of the gauges above to randomly update their value.

Configurable features include:

  • Changeable min/max values.
  • All colors.
sudo apt-get update
sudo apt-get install curl build-essential libcurl4-openssl-dev git cmake libssl-dev uuid-dev valgrind libglib2.0-dev
git clone --recursive https://github.com/Azure/azure-iot-gateway-sdk.git
var sphero = require("sphero"),
sprkp = sphero("F3:F2:6D:55:71:09"); // change BLE address accordingly
sprkp.connect(function() {
// roll sprkp in a random direction, changing direction every second
setInterval(function() {
var direction = Math.floor(Math.random() * 360);
sprkp.roll(150, direction);
}, 1000);
});
@jongio
jongio / PiShare
Created September 11, 2016 17:00
[PiShare]
comment=Raspi Share
path=/home/pi
browseable=Yes
writeable=Yes
only guest=No
create mask=0777
directory mask=0777
public=no
sudo apt update
sudo apt full-upgrade
sudo apt install -y xrdp
sudo apt install -y samba
sudo leafpad /etc/samba/smb.conf &
#Enter the following at bottom of smb.conf
[PiShare]
comment=Raspi Share
path=/home/pi/
browseable=Yes
writeable=Yes
only guest=No
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install -y nodejs