Skip to content

Instantly share code, notes, and snippets.

View cfaulkingham's full-sized avatar

Colin Faulkingham cfaulkingham

View GitHub Profile
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
@cfaulkingham
cfaulkingham / Select_to_Html.js
Created April 6, 2012 14:58
Convert Select ELement's to Dropdown group
/*!
* Convert <select> elements to Dropdown Group
*
* Author: John Rocela 2012 <me@iamjamoy.com>
* Update: Fixed issue with selected showing value instead of text Colin Faulkingham <colin.faulkingham@gmail.com> 2012
*/
jQuery(function($){
$('select').each(function(i, e){
if (!($(e).data('convert') == 'no')) {
$(e).hide().wrap('<div class="btn-group" id="select-group-' + i + '" />');
@cfaulkingham
cfaulkingham / frogger.pde
Created October 11, 2011 01:25
Code for adding joystick support to the Gameduino Frogger game.
class Controller {
public:
void begin() {
byte i;
for (i = 3; i < 7; i++) {
pinMode(i, INPUT);
digitalWrite(i, HIGH);
}
prev = 0;
}
@cfaulkingham
cfaulkingham / drawbotVisual.pde
Created September 19, 2011 18:36
Drawbot Visual point viewer
/**
* used to visualize the points for drawbot in processing.
* Colin Faulkingham
* http://processing.org/
* replace your moveTo()'s with ellipse()
*/
void setup() {
size(800, 400);
noStroke();
@cfaulkingham
cfaulkingham / TempHumidityPrinter.pde
Created August 25, 2011 23:54
Temp Humidity Printer
/*
TempHumidityPrinter
(c) Colin Faulkingham 2011 - MIT license
Sparkfun Thermal Printer http://www.sparkfun.com/products/10438
Adafruit DHT11 Temp and Humidy Sensor https://www.adafruit.com/products/386
Sparkfun 16x2 LCD display http://www.sparkfun.com/products/9761
Arduino UNO SMD http://www.sparkfun.com/products/10356
#define VC0706_COLOR_CTRL 0x3C
// I also added the following under
//class VC0706 {
// public:
boolean setColorCtrl(uint8_t,uint8_t);
@cfaulkingham
cfaulkingham / VC0706.cpp
Created August 16, 2011 11:35
Modification to the serial camera module
boolean VC0706::setColorCtrl(uint8_t showMode, uint8_t controlMode) {
uint8_t args[] = {0x02,controlMode,showMode};
return runCommand(VC0706_COLOR_CTRL, args, 3, 5);
}
@cfaulkingham
cfaulkingham / db.js
Created July 21, 2011 18:16
This is the configuration file for mysql_to_couchdb.js
settings = {
password: 'your_password',
user: 'your_user',
hostdb: 'your.server.address',
couchdbhttp: 'http://your_server_address',
couchdbhttpport: '5984' // couchdb default port
}
@cfaulkingham
cfaulkingham / mysql_to_couchdb.js
Created July 21, 2011 18:14
This is a script to convert a MySQL table to a CouchDB database.
/*
Copyright (C) 2011 Colin Faulkingham, http://3a2d29.com/
This program 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 program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@cfaulkingham
cfaulkingham / LoadImage.java
Created July 5, 2011 20:18
Used to convert an Jpeg image into values that my Drawbot can read.
/*
* Colin Faulkingham Drawbot Image Processing Code 2011
*
*/
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;