I hereby claim:
- I am lindemann09 on github.
- I am olindemann (https://keybase.io/olindemann) on keybase.
- I have a public key ASBmpekJTodOaBWMoNk2h07wuXb1z0Orpy5b7pACWmRhPAo
To claim this, I am signing this object:
# Example how to export r/exams questions to ANS | |
# | |
# The resulting zip file 'qti4ans.zip' can be imported to ANS via the web interface | |
# | |
library(exams) | |
#' Exporting exams to QTI (QTI 2.1) compatible with ANS | |
#' | |
exams2qti4ans <-function(file, name="qti4ans.zip", ...){ |
check_item <- function(...) { | |
if (!("exams" %in% installed.packages()[ , "Package"])){ | |
install.packages("exams") | |
} | |
file = rstudioapi::getSourceEditorContext()$path | |
exams::exams2html(file) | |
} |
__author__ = "Oliver Lindemann <[email protected]>" | |
""" | |
Parser for Remindo JSON result files | |
Example: Convert to csv | |
``` | |
from remindo_results import RemindoResults | |
rr = RemindoResults("remindo_result_exam_A.json", 41, ignored_questions=[0]) | |
rr.save_csv_files() |
I hereby claim:
To claim this, I am signing this object:
{ | |
"@type": "dataset", | |
"@context": "https://schema.org/", | |
"schemaVersion": "Psych-DS 0.1.0", | |
"name": "Dataset Demo", | |
"description": "", | |
"keywords": [], | |
"license": "", | |
"temporalCoverage": "", | |
"spatialCoverage": "", |
import expyriment as xpy | |
def shape_test_case(size, line_width): | |
"""Compare manual rectangle with result from Shape class.""" | |
from expyriment import stimuli | |
library("dplyr") | |
library(matrixStats) | |
source("two_force_sensor_functions.R") | |
pre_process_xpd = function(xpd) { | |
# preprocessing xpd-files: | |
# | |
# adding variable | |
# small | |
# switch: mini-block switch |
from __future__ import absolute_import, print_function, division | |
from builtins import * | |
__author__ = 'Oliver Lindemann <[email protected]>' | |
import pygame | |
from PIL.Image import isImageType | |
from expyriment.stimuli import Canvas | |
class ExprimentPILImage(Canvas): |
import expyriment | |
from expyriment.misc import geometry | |
import math as _math | |
def _contour_of_edge(node_A, node_B, node_C, line_width): | |
# using nodes in cartesian coordinates | |
BA = (node_B[0] - node_A[0], node_B[1] - node_A[1]) # vector B-A | |
BC = (node_B[0] - node_C[0], node_B[1] - node_C[1]) | |
phi_BC = _math.atan2(BC[1], BC[0]) # polar coordinate phi (angle) from cartesian |
import expyriment | |
import numpy as np | |
expyriment.control.set_develop_mode() | |
exp = expyriment.control.initialize() | |
expyriment.control.start(skip_ready_screen=True) | |
def canvas_with_gabor_patch(sigma,theta,Lambda,psi,gamma): | |
sigma_x = sigma |