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 -*- | |
""" | |
Demonstration of wait callback functions in Expyriment | |
""" | |
from expyriment import control, design, misc, io, stimuli | |
control.defaults.quit_key = None # switch off quitting key |
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 expyriment | |
for k,v in expyriment.get_system_info().iteritems(): | |
print k + ":\t" + str(v) |
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 expyriment | |
expyriment.control.run_test_suite() |
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/" |
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
#!/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
#!/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
""" | |
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/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
# 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) |