Skip to content

Instantly share code, notes, and snippets.

View hackolite's full-sized avatar

hackolite hackolite

  • Lamaaz
  • France:Aulnay-sous-Bois
View GitHub Profile
#include <OneWire.h>
// OneWire DS18S20, DS18B20, DS1822 Temperature Example
//
// http://www.pjrc.com/teensy/td_libs_OneWire.html
//
// The DallasTemperature library can do all this work for you!
// http://milesburton.com/Dallas_Temperature_Control_Library
OneWire ds(2); // on pin 10 (a 4.7K resistor is necessary)
@hackolite
hackolite / worm.py
Last active May 30, 2018 09:08
worm.py
#!/usr/bin/env python
"""
Author: [email protected]
Mister Smith:
Mobility :
Sens :
Neural network
"""
#!/usr/bin/python
#*****************************************************************************
#
# Copyright (c) 2013 Andrea Bonomi <[email protected]>
#
# Published under the terms of the MIT license.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
@hackolite
hackolite / bench.py
Created March 1, 2013 14:07
This script use the brian module (neuroscience), to benchmark cpu(s) from a computer.
'''
Model fitting example using several machines.
Before running this example, you must start the Playdoh server on the remote machines.
'''
from brian import loadtxt, ms, Equations
@hackolite
hackolite / OOB : python toolbox for bioreactor management
Last active October 13, 2015 20:28
OOB : python toolbox for bioreactor management
import smtplib
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
import os
import Image
from PIL import Image
import random
import time
import pylab
import time
@hackolite
hackolite / webcam.py
Created April 30, 2012 11:59
Visualisation toolkit
import pygame
import Image
from pygame.locals import *
import sys
import opencv
#this is important for capturing/displaying images
from opencv import highgui