Skip to content

Instantly share code, notes, and snippets.

@outofjungle
outofjungle / default.rb
Created April 21, 2014 22:13
Attribute precedence
#
# Cookbook Name:: apache
# Recipe:: default
#
package "httpd" do
action :install
end
service "httpd" do
@outofjungle
outofjungle / kitchen.yml
Last active August 29, 2015 14:00
Multiple nodes with kitchen and chef-zero
---
driver:
name: vagrant
provisioner:
name: chef_zero
json_attributes: false
client_rb:
node_name: node1
@outofjungle
outofjungle / led.ino
Created October 7, 2014 04:29
LED Control
#define LED 9
String buffer = "";
int command = 0;
void setup() {
Serial1.begin( 9600 );
pinMode( LED, OUTPUT );
}
#define LED 9
String buffer = "";
int command = 0;
void setup() {
Serial1.begin( 9600 );
pinMode( LED, OUTPUT );
}
#define BUTTON 7
#define LED 9
int led_state = LOW;
int button_state;
int last_button_state = LOW;
long debounce_time = 0;
long debounce_delay = 50;
char msg[32];
#define BUTTON 7
#define LED 9
String buffer = "";
int command = 0;
int led_state = LOW;
int button_state;
int last_button_state = LOW;
#define SENSOR A0
int sensor_value = 0;
long input_sum = 0;
int input_count = 0;
char msg[32];
void setup() {
Serial1.begin(9600);
}
@outofjungle
outofjungle / tmp36.ino
Last active August 29, 2015 14:07
tmp36
#define SENSOR A0
float temp = 0;
long input_sum = 0;
int input_count = 0;
void setup() {
Serial1.begin(9600);
}
@outofjungle
outofjungle / tmp36button.ino
Created October 7, 2014 08:40
tmp36button
#define SENSOR A0
#define BUTTON 7
String buffer = "";
int command = 0;
long input_sum = 0;
int input_count = 0;
int button_state;
int last_button_state = LOW;
@outofjungle
outofjungle / error.log
Created October 9, 2014 23:21
Nupic build error log
Linking CXX shared module ../../nupic/bindings/_iorange.so
[ 58%] Built target _iorange
[ 64%] Swig source
/tmp/nupic/include/nta/utils/LoggingException.hpp:37: Warning(401): Nothing known about base class 'Exception'. Ignored.
[ 70%] Building CXX object CMakeFiles/_math.dir/temp/extensions/bindings/py/math/MathPyPYTHON_wrap.cxx.o
In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:15,
from /tmp/nupic/temp/extensions/bindings/py/math/MathPyPYTHON_wrap.cxx:2741:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]