Skip to content

Instantly share code, notes, and snippets.

View jasmainak's full-sized avatar

Mainak Jas jasmainak

View GitHub Profile
# %%
# %matplotlib widget
import matplotlib.pyplot as plt
from matplotlib.colors import SymLogNorm
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
import numpy as np
from neuron import h
from hnn_core.network_builder import load_custom_mechanisms
from hnn_core.lfp import _LFPElectrode
@jasmainak
jasmainak / automations.sh
Created January 6, 2019 04:42 — forked from raghavrv/automations.sh
Some automation aliases and scripts for Telecom Paristech desktop / TSI server
export LANG=en_US.UTF-8
# COMMON CONFS
# Use pgrep with full command path and display the name
alias checktuns="ps x | grep 'ssh -N'"
alias pgrep="ps x | grep "
# Set the scikit path env var
export SCIKIT_LEARN_PATH=~/raghav/code/scikit-learn
name: hnn
channels:
- defaults
dependencies:
- python>=3.6
- pip
- numpy
- scipy
- matplotlib
- cython
@jasmainak
jasmainak / ps.py
Created July 18, 2018 02:30 — forked from larsoner/ps.py
# -*- coding: utf-8 -*-
"""
PySurfer-like plotting using VisPy scene.
"""
import numpy as np
from vispy import scene, app
import mne
import nibabel
@jasmainak
jasmainak / haufe.ipynb
Created July 14, 2017 09:25 — forked from wmvanvliet/haufe.ipynb
Testing the Haufe trick
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.