Skip to content

Instantly share code, notes, and snippets.

Florian Krause fladd

View GitHub Profile
@fladd
fladd / fade_between_stims.py
Created Jul 26, 2018
Fade between stimuli in Expyriment
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)
@fladd
fladd / fade_out_stim.py
Created Jul 26, 2018
Fading out a stimulus in Expyriment
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:

@fladd
fladd / rename_dicoms_tbv.py
Last active Oct 11, 2018
Rename DICOM files to Turbo-BrainVoyager format
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
@fladd
fladd / 0_reuse_code.js
Created Jul 1, 2016
Here are some things you can do with Gists in GistBox.
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"
@fladd
fladd / remarkjs.css
Last active Aug 23, 2018
CSS of the example slides on http://remarkjs.com
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;
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.