Skip to content

Instantly share code, notes, and snippets.

@claudiuo
claudiuo / Dockerfile
Last active August 29, 2015 14:17
Dockerfile for my node-red Docker image
# base image
FROM resin/rpi-raspbian:wheezy
MAINTAINER Claudiu Oprea <claudiuo@gmail.com>
# install node.js
ADD http://node-arm.herokuapp.com/node_0.10.36_armhf.deb .
RUN dpkg -i node_0.10.36_armhf.deb
RUN rm -f node_0.10.36_armhf.deb
RUN apt-get update && apt-get install -y build-essential python --no-install-recommends
#RUN apt-get install -y python-dev python-pip --no-install-recommends
@claudiuo
claudiuo / gist:9775957
Created March 26, 2014 02:38
output from sudo npm -l install for greenwave-gop node module
~/steward/steward/node_modules/greenwave-gop $ sudo npm -l install
npm WARN excluding symbolic link utils/ncov -> lib/ncov.js
npm http GET https://registry.npmjs.org/node-expat/2.0.0
> mdns@2.0.0-dev install /home/tavi/steward/steward/node_modules/greenwave-gop/node_modules/mdns
> node-gyp rebuild
make: Entering directory `/home/tavi/steward/steward/node_modules/greenwave-gop/node_modules/mdns/build'
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o
@claudiuo
claudiuo / gist:6638831
Created September 20, 2013 14:59
distance calculator: device: LED timing
// add wakeup call at the end of function in agent.on
// wakeup in 10 sec to turn the LEDs off
imp.wakeup(10, turnLedsOff);
// and the function itself
function turnLedsOff() {
hardware.pin1.write(0);
hardware.pin2.write(0);
hardware.pin5.write(0);
}