This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
import pygame.surfarray as surfarray | |
import numpy | |
from expyriment import control | |
from expyriment.stimuli import Canvas | |
class PGSurface(Canvas): | |
"""PyGame Surface: Expyriment Stimulus for direct Pygame operations and | |
PixelArrays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf8 | |
import csv | |
import datetime | |
from orderedset import OrderedSet | |
from docx import Document | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: iso-8859-1 -*- | |
""" | |
Generate tex files with subject hour vouchers and a code list | |
and run pdflatex. | |
Version 0.5 | |
(c) 2012-2015, Oliver Lindemann |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# quit program by pressing <ESC> | |
from expyriment import io, control | |
control.set_develop_mode(True) | |
control.initialize() | |
mouse = io.Mouse() | |
control.start(skip_ready_screen=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/Rscript | |
# | |
# Converts spss file to csv-file ("output.csv") | |
# | |
# usage: | |
# Rscript spss2csv.R <FILENAME> | |
library(foreign) | |
args <- commandArgs(trailingOnly = TRUE) | |
data = read.spss(args[1], to.data.frame=TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Formal design of the experiment "sub-symbolic-place-value" | |
""" | |
def dec2base_x(n, base): | |
"""base x array (numpy array) of the decimal n""" | |
rtn = [] | |
while(n>0): | |
rtn.append(n%base) | |
n = n/base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from math import sqrt | |
import gc | |
import pylink | |
from pylink import getEYELINK | |
from expyriment.stimuli import Circle | |
from expyriment.misc import constants | |
from expyriment.misc.geometry import coordinates2position |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Linux installation script for CmdStan (http://mc-stan.org/) | |
# Downloads and installs CmdStan on DEBIAN/UBUNTU LINUX | |
# The following shell commands will be created (/usr/bin/...): | |
# stanc | |
# stan_make | |
# stan_print | |
# | |
# Please adapt VERSION number! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This shows how to get the random slopes and CI's for each level in a hierarchical model | |
#dataset used | |
head(iris) | |
#what we want to investigate | |
#Is there a general relationship? and how it differs by species | |
plot(iris$Sepal.Width ~ iris$Petal.Width, col = iris$Species, las =1) | |
#Our model with random slope and intercept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "This script is deprecated!" | |
echo "Please visit http://lindemann09.github.io/jasp-linux-install/" |