Skip to content

Instantly share code, notes, and snippets.

View effigies's full-sized avatar

Chris Markiewicz effigies

View GitHub Profile
@effigies
effigies / fmriprep.py
Created January 27, 2017 22:25
FMRIPREP Wrapper
#!/usr/bin/env python3
import sys
import os
import re
import argparse
import subprocess
import tempfile
from functools import partial
__version__ = 0.1
@effigies
effigies / TypedDict.py
Created July 30, 2015 22:31
Typed Dictionary
#!python3
class TypedDict(dict):
keytype = valtype = keymap = valmap = valid_keys = typemap = None
def __init__(self, mapping=None, **kwargs):
if self.typemap is not None and self.valid_keys is None:
self.valid_keys = set(self.typemap)
super(TypedDict, self).__init__()
if mapping is None:
#!/bin/sh
#
# /etc/chromium-browser/default
#
# Default settings for chromium-browser. This file is sourced by /bin/sh from
# /usr/bin/chromium-browser
# Options to pass to chromium-browser
MIN_SSL="tls1"
RC4="0x0004,0x0005,0xc007,0xc011"
@effigies
effigies / turner.py
Created August 12, 2014 22:12
Turner Least Squares
# Based off of Mumford et al. (2011)
# Derived from a figure, as there was no actual math presented :\
#
# It's a sort of minimal-assumption regression regularization method
import numpy as np
def turnerLeastSquares(designMatrix, samples):
nuisance = np.sum(designMatrix, axis=1).reshape((designMatrix.shape[0], 1))

Keybase proof

I hereby claim:

  • I am effigies on github.
  • I am effigies (https://keybase.io/effigies) on keybase.
  • I have a public key whose fingerprint is 1430 CCDA 4D04 39C7 598A 5815 D0CD EB5D 32A0 D8C7

To claim this, I am signing this object: