Skip to content

Instantly share code, notes, and snippets.

Matthieu Brucher mbrucher

Block or report user

Report or block mbrucher

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<html>
<head>
<title></title>
<link rel="stylesheet" href="/static/main.css?lang=fr">
</head>
<body>
<center><div id="map-canvas" style="width:70%;height:500px"></div></center>
<script src="/static/map.js?lang=fr" type="text/javascript"></script>
<script type="text/javascript">
@mbrucher
mbrucher / minst_autoencoder_classifier.ipynb
Created Nov 18, 2018
A mix of autoencoder and a classifier with Tensorflow
View minst_autoencoder_classifier.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mbrucher
mbrucher / deploy.py
Created Aug 16, 2016
Python 3 64bits deployment script
View deploy.py
# Almost copied entirely from http://www.clemens-sielaff.com/creating-your-own-python-3-redistributable-on-windows/
import os, sys
from glob import glob
from shutil import copy, copytree
RELEASE = 1
DEBUG = 2
def find_visual_studio():
View gist:b3c6f281a57d4173f9134d676c3dcdae
// You need to setup memory, how the parameter is updated
// you need to setup max_interval_process, the number of samples before the next update
class ProcessingClass
{
double parameter_target;
double parameter_current;
int64_t interval_process;
public:
@mbrucher
mbrucher / broadcastertest.cpp
Last active Nov 9, 2015
Asynchronous reading and writing partitioned data
View broadcastertest.cpp
/**
*
*/
#include "parallelpropertybroadcaster.h"
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>
@mbrucher
mbrucher / simulate_annuity.py
Created Aug 29, 2015
Proper simulation of annuities
View simulate_annuity.py
#!/usr/bin/env python
def simulate_annuity(amount, annuity, month_mean_interest, month_scale_interest):
import numpy as np
months = []
while amount > 0:
months.append(amount)
if month_scale_interest:
@mbrucher
mbrucher / test_thin_plates.py
Created Jul 17, 2015
Deformation fields with thin-plates
View test_thin_plates.py
import unittest
import numpy
from numpy.testing import *
set_package_path()
from transformation import *
restore_path()
class TestDeformationCreation(NumpyTestCase):
def test_1DCreation(self):
@mbrucher
mbrucher / hpctoolkit2callgrind.py
Last active Aug 29, 2015
Script to convert from XML HPCToolkit format to callgrind
View hpctoolkit2callgrind.py
#!/usr/bin/env python
from xml.sax import ContentHandler, make_parser
from collections import defaultdict
class HPCToolKitHandler(ContentHandler):
def __init__(self, f):
self.f = f
self.metrics = {}
self.files = {}
You can’t perform that action at this time.