Skip to content

Instantly share code, notes, and snippets.

Header 1

This is a paragraph.
A new line is forced by one or two spaces.

This is a new paragraph.

Header 2

@fladd
fladd / remarkjs.css
Last active August 23, 2018 14:23
CSS of the example slides on http://remarkjs.com
@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;
"""Application Title
Description of the application.
"""
__author__ = "Name <email>"
__version__ = "0.0.0"
@fladd
fladd / 0_reuse_code.js
Created July 1, 2016 23:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
ProjectName
├── sub-001-patient
│ ├── ses-001-pre
│ │ ├── anat
│ │ │ ├── 001-Localiser
│ │ │ │ └─── DICOM
| │ │ │ └── ...
│ │ │ └── 002-Anatomy
│ │ │ └─── DICOM
| │ │ └── ...
@fladd
fladd / test.md
Last active October 11, 2017 00:12

test

s = "Python syntax highlighting"
print s

testing stuff

@fladd
fladd / rename_dicoms_tbv.py
Last active October 11, 2018 09:41
Rename DICOM files to Turbo-BrainVoyager format
"""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.

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:

@fladd
fladd / fade_out_stim.py
Created July 26, 2018 10:15
Fading out a stimulus in Expyriment
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()