Skip to content

Instantly share code, notes, and snippets.

View allsey87's full-sized avatar

Michael Allwright allsey87

View GitHub Profile
@allsey87
allsey87 / main.cxx
Created April 16, 2016 16:07
Adding a column using the vector of vectors approach
#include <iostream>
#include <vector>
using namespace std;
template <class T>
using table = vector<vector<T> >;
template <class T>
ostream& operator<<(ostream& stream, const table<T>& tbl) {
@allsey87
allsey87 / bebot-dualcamera-devicetree
Created April 2, 2015 15:07
BeBot device tree snippet containing configuration for dual camera input
ov5640_1_osc: oscillator {
compatible = "fixed-clock";
#clock-cells = <1>;
clock-frequency = <24000000>;
clock-output-names = "ov5640_1_osc";
};
ov5640_1_clk : clock {
compatible = "gpio-gate-clock";
clocks = <&ov5640_1_osc>;