This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "macAddress.h" | |
void setup () { | |
byte mac[6]; | |
getUniqueMacAddress(mac); | |
Serial.begin(115200); | |
Serial.print("mac: "); | |
for (uint8_t i = 0; i < sizeof(mac); i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "FastLED.h" | |
// Lights that chase around the outside of a sign, as found | |
// at carnivals, circuses, and theatres. | |
#define NUM_LEDS 35 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER RGB | |
#define DATA_PIN 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sequel Basic Scafolding Model Generator for MySQL | |
# This routine takes all the table of a database, en generates all Sequel models for Ramaze | |
# For each table model we put : | |
# - A header that reminds you the table structure | |
# - the plugin list you wrote in 'plugin_to_add' array | |
# - The Sequel referential inegrity : one_to_many, many_to_one | |
# - A "Validate" method that checks not nullable columnns and unique columns | |
# - Generates init.rb to be include in the project | |
# | |
# Note : db_connect.rb should already exists. Create it using Rake |