Skip to content

Instantly share code, notes, and snippets.

@mblondel
mblondel / curve_averaging.py
Last active May 13, 2017 16:47
Variable-length curve averaging
"""Variable-length curve averaging"""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# License: BSD 3 clause
import numpy as np
from scipy.interpolate import interp1d
def curves_mean_std(X, Y, kind="linear"):
@jbarratt
jbarratt / nbgrep
Last active July 31, 2025 23:11
'nbgrep', search the code of all your ipython notebooks
#!/bin/bash
# usage: nbgrep 'pattern'
SEARCHPATH=~/work/
# 'jq' technique lifted with gratitude
# from https://gist.github.com/mlgill/5c55253a3bc84a96addf
# Break on newlines instead of any whitespace
@roban
roban / AI_policy_panel_IAS.md
Last active June 7, 2023 06:31
Notes on "Steering AI for the Public Good: A Dialogue for the Future" panel (2023-06-06 at IAS)

"Steering AI for the Public Good: A Dialogue for the Future"

2023-06-06 at IAS

Youtube Recording

panel flyer

Panel