Skip to content

Instantly share code, notes, and snippets.

Avatar

Pierre Haessig pierre-haessig

View GitHub Profile
@pierre-haessig
pierre-haessig / JuMP modify constraint.ipynb
Created May 25, 2018
Experiment with the ability to modify a constraint of an existing optimization problem modeled with JuMP
View JuMP modify constraint.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierre-haessig
pierre-haessig / Diamonds Altair.ipynb
Created Oct 24, 2016
first test of Altair viz package on the diamonds dataset
View Diamonds Altair.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierre-haessig
pierre-haessig / Marker disappear bug.ipynb
Created May 26, 2016
Matplotlib markers disappear bug when using seaborn-notebook style (mpl 1.5.1)
View Marker disappear bug.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierre-haessig
pierre-haessig / logit_norm_imshow.ipynb
Created Jul 13, 2015
Image plot with a logit scale -- example of a transition matrix
View logit_norm_imshow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierre-haessig
pierre-haessig / luminosity_2_channels.ino
Created May 21, 2015
2 channels light sensor (Broadband+IR) based on Arduino board + TSL2561 sensor
View luminosity_2_channels.ino
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_TSL2561_U.h>
Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345);
void displaySensorDetails(void)
{
sensor_t sensor;
tsl.getSensor(&sensor);
View Cross correlation.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierre-haessig
pierre-haessig / config
Last active Apr 3, 2020
Raspberry Pi kernel config: comparing Raspbian's 3.12-1-rpi vs. RPi foundation's 3.12.32+ (e.g. config of 1-Wire bus)
View config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.12.32 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
@pierre-haessig
pierre-haessig / logit_scale.ipynb
Created Oct 8, 2014
Logit scale, for plotting cumulated probability distributions (matplotlib implementation). Better visualization of the tails
View logit_scale.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pierre-haessig
pierre-haessig / selenium_2048.py
Created May 20, 2014
A simple code to interact in Python with the "real" 2048 game in web browser.
View selenium_2048.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Pierre Haessig — May 2014
"""A simple code to interact in Python with the "real" 2048 game in web browser.
"""
from __future__ import print_function
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
@pierre-haessig
pierre-haessig / second order process.ipynb
Created May 7, 2014
Study of 2nd order autoregressive process (AR(2))
View second order process.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.