Instantly share code, notes, and snippets.

View fade_between_stims.py
import expyriment, os, pygame, time
from expyriment import design, control, stimuli, io
from expyriment.misc import constants
#expyriment.control.defaults.open_gl = 0
control.set_develop_mode(True)
exp = expyriment.design.Experiment(background_colour=[150,150,150])
expyriment.control.initialize(exp)
View fade_out_stim.py
import expyriment, os, pygame, time
from expyriment import design, control, stimuli, io
from expyriment.misc import constants
#expyriment.control.defaults.open_gl = 0
control.set_develop_mode(True)
exp = expyriment.control.initialize()
View keybase.md

Keybase proof

I hereby claim:

  • I am fladd on github.
  • I am fladd (https://keybase.io/fladd) on keybase.
  • I have a public key ASD9P8whZ440olJpw8d-9EUM_ajYoahwIca78nkuivgo9Ao

To claim this, I am signing this object:

View rename_dicoms_tbv.py
"""Rename DICOM files to Turbo-BrainVoyager format.
Works with:
- BrainVoyager .dcm files
- Siemens .IMA files
Usage:
python rename_dicoms_tbv.py [<directory>]
If <directory> is not specified, a GUI dialogue will ask for it.
View test.md

test

s = "Python syntax highlighting"
print s

testing stuff

View data_hierarchy.txt
Project
├── S01[Group1]
│ ├── Sess1
│ │ ├── anatomical
│ │ │ ├── Loc
│ │ │ │ ├── Loc-0001-0001-00001.dcm
│ │ │ │ ├── Loc-0001-0002-00002.dcm
│ │ │ │ └── Loc-0001-0003-00003.dcm
│ │ │ └── Anatomy
│ │ │ ├── Anatomy-0002-0001-00001.dcm
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View tkinter_template.py
"""Application Title
Description of the application.
"""
__author__ = "Name <email>"
__version__ = "0.0.0"
View remarkjs.css
@import url(https://fonts.googleapis.com/css?family=Droid+Serif);
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);
body {
font-family: 'Droid Serif';
}
h1, h2, h3 {
font-family: 'Yanone Kaffeesatz';
font-weight: 400;