Skip to content

Instantly share code, notes, and snippets.

@wiso
wiso / airport.ipynb
Last active January 3, 2017 18:31
Airports Voronoi tesselation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wiso
wiso / gist:8012468
Created December 17, 2013 20:55
word cloud with python BeautifulSoup ipython notebook
{
"metadata": {
"name": "Untitled0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wiso
wiso / gmail.ipynb
Last active December 21, 2016 17:26
Analyse gmail emails with python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wiso
wiso / Poisson
Created June 20, 2014 19:54
Poisson
{
"metadata": {
"name": "poisson"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wiso
wiso / Poisson2
Created June 21, 2014 17:51
Poisson2
{
"metadata": {
"name": "poisson"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wiso
wiso / truncated_rms
Created August 19, 2014 14:13
truncated rms bias correction
{
"metadata": {
"name": "fraction rms"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wiso
wiso / example_THPoly_Attilafix.cxx
Last active August 29, 2015 14:11
THPoly problem
// compile with:
// g++ example_THPoly_Attilafix.cxx -O0 -g `root-config --cflags` `root-config --libs`
// first download the file:
// wget http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/GroupData/egammaMVACalib/v1/MVACalib_electron.weights.root
// run with valgrind
// valgrind --tool=memcheck --suppressions=`root-config --etcdir`/valgrind-root.supp ./a.out
#include <cassert>
@wiso
wiso / example_THPoly.cxx
Last active August 29, 2015 14:11
THPoly problem
// compile with:
// g++ example_THPoly.cxx -O0 -g `root-config --cflags` `root-config --libs`
// first download the file:
// wget http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/GroupData/egammaMVACalib/v1/MVACalib_electron.weights.root
// run with valgrind
// valgrind --tool=memcheck --suppressions=`root-config --etcdir`/valgrind-root.supp ./a.out
#include <cassert>
@wiso
wiso / example_THPoly_Attilafix2.cxx
Created December 15, 2014 16:43
THPoly problem
// compile with:
// g++ -std=c++11 example_THPoly_Attilafix2.cxx -O0 -g `root-config --cflags` `root-config --libs`
// first download the file:
// wget http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/GroupData/egammaMVACalib/v1/MVACalib_electron.weights.root
// run with valgrind
// valgrind --tool=memcheck --suppressions=`root-config --etcdir`/valgrind-root.supp ./a.out
#include <cassert>
@wiso
wiso / gist:497b3ea55ccc639db829
Created February 20, 2015 15:33
Discrete profiling
{
"metadata": {
"name": "",
"signature": "sha256:49129f1ba75369822f0d975a66b9800a024085f4bca7ab501f6b1a8cf3ba306c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [