Skip to content

Instantly share code, notes, and snippets.

View jmxpearson's full-sized avatar

John Pearson jmxpearson

View GitHub Profile
@jmxpearson
jmxpearson / .tmux.conf
Created March 19, 2017 12:19
tmux configuration
# set prefix to backtick
set -g prefix `
unbind C-b
bind ` send-prefix
# set delay between prefix and command (copied from tmux book)
set -s escape-time 1
# set r to reload
bind r source-file ~/.tmux.conf \; display 'Reloaded!'
@jmxpearson
jmxpearson / lfads_out_2_hdf5.py
Last active November 16, 2017 21:25
lfads processing scripts
# take session-by-session output from lfads run in posterior sample and average
# mode, reassemble train and test trials, trim back to correct length (they
# were padded for batching), and bundle up in a single hdf5 file like
# the one used for behavior
import numpy as np
import h5py
import os
lfads_out_fpath = os.path.expanduser('~/data/penaltykick/model_data/lfads/fitted/')
lfads_in_fpath = os.path.expanduser('~/data/penaltykick/model_data/lfads/')
@jmxpearson
jmxpearson / covariance eigenvalues.ipynb
Created February 25, 2019 02:29
Eigenvalues and vectors of covariance matrix of natural scenes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.