Skip to content

Instantly share code, notes, and snippets.

View JasperVanDenBosch's full-sized avatar

Jasper J.F. van den Bosch JasperVanDenBosch

View GitHub Profile
@skjerns
skjerns / save_edf.py
Last active October 20, 2024 03:09
Save a mne.io.Raw object to EDF/EDF+/BDF/BDF+
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 5 12:56:31 2018
@author: skjerns
Gist to save a mne.io.Raw object to an EDF file using pyEDFlib
(https://github.com/holgern/pyedflib)
Disclaimer:
- Saving your data this way will result in slight
loss of precision (magnitude +-1e-09).
- It is assumed that the data is presented in Volt (V),
@jvanasco
jvanasco / __init__.py
Created May 24, 2013 04:20
using statsd to profile a pyramid app
config.add_subscriber(\
"app.subscribers.statsd_timing",
"pyramid.events.ContextFound")
@mivanov
mivanov / __init__.py
Created April 5, 2012 20:38 — forked from JasperVanDenBosch/fexpect.py
Fexpect module
from fexpect import expect, expecting, run, sudo
# fabric extension to enable handling expected prompts
#
# Read more at http://ilogue.com/jasper/blog/fexpect--dealing-with-prompts-in-fabric-with-pexpect/
#
# This file Copyright (c) Jasper van den Bosch, ilogue, [email protected]
# Pexpect Copyright (c) 2012 Noah Spurrier ,see: http://www.noah.org/wiki/pexpect#License
from fabric.state import env
import fabric.api
@dcreager
dcreager / version.py
Created February 10, 2010 20:30
Extract a setuptools version from the git repository
# -*- coding: utf-8 -*-
# Author: Douglas Creager <[email protected]>
# This file is placed into the public domain.
# Calculates the current version number. If possible, this is the
# output of “git describe”, modified to conform to the versioning
# scheme that setuptools uses. If “git describe” returns an error
# (most likely because we're in an unpacked copy of a release tarball,
# rather than in a git working copy), then we fall back on reading the
# contents of the RELEASE-VERSION file.