Skip to content

Instantly share code, notes, and snippets.

View Pilooz's full-sized avatar

Pierre-Gilles Levallois Pilooz

  • Freelancer
  • France
View GitHub Profile
@abcd-ca
abcd-ca / example.ino
Created May 27, 2019 04:10
Example of getting unique mac address using Ethernet Featherwing
#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++) {
@kriegsman
kriegsman / CircusMarquee.ino
Created April 20, 2018 17:10
CircusMarquee - marquee lights as found around the edge of a circus, carnival, or theatre sign
#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
@johanmeiring
johanmeiring / gist:3002458
Created June 27, 2012 08:32
"git lg" alias for pretty git log
# 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 --"
@leucos
leucos / model_generator.rb
Created April 24, 2012 13:52 — forked from Pilooz/model_generator.rb
Sequel model generator for mysql
# 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