Skip to content

Instantly share code, notes, and snippets.

@odrix
odrix / Employe.cs
Created February 15, 2013 14:26
use data-annotation and ShortName with DisplayAttribute in ASP.NET MVC 4.0 (razor engine)
public class Employe
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
[Display(Name="Years of Experience", ShortName="Nb Exp")]
public int ExpYear { get; set; }
}
#include <dht11.h>
#include <DS1302.h>
#include <SD.h>
#include <EEPROM.h>
// PIN et objet pour le capteur de temperature et humidité (DHT11)
#define DHT11PIN 2
dht11 DHT11;
// definition des PIN pour le module RTC et objet DS1302
@odrix
odrix / gradientChangeColor.ino
Last active August 29, 2015 14:13
Led RGB Change Color Circle gradient
#define pinRouge 9
#define pinVert 10
#define pinBleu 11
int couleur=1;
int ledrgb[] = {0,0,255};
int valNuance = 17;
int nbNuance = 15;
// valNuance * nbNuance = 255
@odrix
odrix / brutalChangeRGB.ino
Created January 19, 2015 22:57
Simple change RGB Led color
#define pinRouge 9
#define pinVert 10
#define pinBleu 11
#define intervalTemps 800
void setup()
{
pinMode(pinRouge, OUTPUT);
pinMode(pinVert, OUTPUT);
pinMode(pinBleu, OUTPUT);