Skip to content

Instantly share code, notes, and snippets.

@jlesech
jlesech / Main.cs
Created Mar 15, 2014
Mono-Mongo/Serialization with ClassMap
View Main.cs
using System;
using MongoDB.Bson.Serialization;
using MongoDB.Driver;
namespace Race
{
class MainClass
{
public static void Main (string[] args)
@jlesech
jlesech / Main.cs
Created Mar 15, 2014
Mono-Mongo/Serialization with attributes
View Main.cs
using System;
using MongoDB.Driver;
namespace Race
{
class MainClass
{
public static void Main (string[] args)
{
@jlesech
jlesech / Main.cs
Created Mar 15, 2014
Mono-Mongo/Default serialization
View Main.cs
using System;
using MongoDB.Driver;
namespace Race
{
class MainClass
{
public static void Main (string[] args)
{
@jlesech
jlesech / pyTWI.py
Created Jul 30, 2012
Python script which allow to compute TWI configuration register values (TWBR and TWPS) for an ATmega328P.
View pyTWI.py
#!/usr/bin/env python
# encoding: utf-8
"""
Copyright (C) 2012 Julien Le Sech - www.idreammicro.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.
@jlesech
jlesech / assert.ino
Created Jul 11, 2012
How to use assertions with Arduino.
View assert.ino
#define __ASSERT_USE_STDERR
#include <assert.h>
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
// the setup routine runs once when you press reset:
void setup() {