Skip to content

Instantly share code, notes, and snippets.

View JAQuent's full-sized avatar

Jörn Alexander Quent JAQuent

View GitHub Profile
@JAQuent
JAQuent / mazeVR_standard.json
Last active December 10, 2024 09:06
Temporary mazeVR_standard.json
{
"targetFrameRate": 60,
"ray_x": [0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95],
"ray_y": [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.55, 0.65,
@JAQuent
JAQuent / bla.json
Last active October 23, 2024 08:46
{
"studies":
[
{
"studyID": "SOLM1",
"UXF_settings_url": "https://s3.eu-west-2.amazonaws.com/olm.task.unity/config_files/SOLM1/semanticOLM_onlineStudy2_OLM_loc1.json",
"scene": "grassy",
"startupText": "https://s3.eu-west-2.amazonaws.com/olm.task.unity/config_files/SOLM1/startUpText.json",
"testFPS": false
@JAQuent
JAQuent / study_dict.json
Last active September 26, 2024 06:56
DW Study Dict
{
"studies":
[
{
"studyID": "DW1",
"UXF_settings_url": "https://gist.githubusercontent.com/JAQuent/7f3b29fa1853d7553576dc3f73a786da/raw/46dee06aba2f27b63afd64074cf9c32f441f54ac/DiamondWorld_standard.json",
"startupText": "https://gist.githubusercontent.com/JAQuent/575b771e0f0c65269c8035a501821af5/raw/2a5ebd576b44ae371627274976be0136592fdb33/startupText.json"
}
]
}
@JAQuent
JAQuent / startupText.json
Last active September 24, 2024 02:33
DW Start Up
{
"chromeBar": "Startup",
"instructionsPanelContent1": "Welcome to DW task! ",
"instructionsPanelContent2": "You could use this space to display some instructions to the researcher or the participant.",
"expSettingsprofile": "Experiment settings profile",
@JAQuent
JAQuent / DiamondWorld_standard.json
Last active September 26, 2024 04:57
DW settings
{
"timeoutPeriod": 300.0,
"forwardSpeed": 15.0,
"rotationSpeed": 50.0,
"mode": "fMRI",
"showFPS": true,
"targetFrameRate": 30,
"endCountDown" : 60,
"endMessage": "谢谢你完成本任务!\n\n请在您关闭应用前稍等片刻。\n\n剩余秒数: ",
"rewardValue": 1,
@JAQuent
JAQuent / plugin-survey-text-timeout.js
Last active September 19, 2024 03:32
Custom jsPsych 7.1.2 survey-text plugin that has a timeout
var jsPsychSurveyTextTimeout = (function (jspsych) {
'use strict';
const info = {
name: "survey-text-timeout",
parameters: {
questions: {
type: jspsych.ParameterType.COMPLEX,
array: true,
pretty_name: "Questions",
{
"targetFrameRate": 60,
"trial_specification_name": "trial_specification_name.csv",
"ray_x": [0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95, 0.05, 0.15, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 0.85, 0.95],
"ray_y": [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.15, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.45, 0.
@JAQuent
JAQuent / cifti_subcortical_MNI152_coordinates.csv
Created July 24, 2023 06:41
MNI coordiantes for CIFTI file (Q1-Q6_RelatedValidation210.CorticalAreas_dil_Final_Final_Areas_Group_Colors_with_Atlas_ROIs2.32k_fs_LR.dlabel.ni)
We can't make this file beautiful and searchable because it's too large.
region,x,y,z
Accumbens-L,-8,6,-16
Accumbens-L,-10,6,-16
Accumbens-L,-6,8,-16
Accumbens-L,-8,8,-16
Accumbens-L,-10,8,-16
Accumbens-L,-6,4,-14
Accumbens-L,-8,4,-14
Accumbens-L,-10,4,-14
Accumbens-L,-6,6,-14
{
"timeoutPeriod": 300.0,
"forwardSpeed": 15.0,
"rotationSpeed": 50.0,
"rewardValue": 1,
"punishmentValue": 2,
"numTrials": 1,
"diamond_x": [44.4, -14.9, 4.7, 28.5, 9.5, -27.3, 14.3, -16.5, -2.8, 18.4, -0.3, -19.7, -18.2, 1.8, 24.1, -28.3, 38, 6.2, 43.2, 10.5],
"diamond_z": [-14.1, 43, 4.2, 34.9, 3.6, 42.5, -0.7, 43.5, 7.3, -18.2, 37, -6.7, 30.9, -6.4, 27.8, 2.8, -29.9, -7.3, -14.3, 31],
"diamondTimings": [29.8, 27.7, 14.1, 16.5, 27.7, 22.9, 11.8, 22.9, 21.8, 12.5, 13.5, 12, 21.7, 29, 18.1, 18.6, 29.5, 19, 24.9, 11.4],
@JAQuent
JAQuent / numbers2words.R
Created February 15, 2021 12:27 — forked from psychemedia/numbers2words.R
R function to convert numbers to words
#https://github.com/ateucher/useful_code/blob/master/R/numbers2words.r
numbers2words <- function(x){
## Function by John Fox found here:
## http://tolstoy.newcastle.edu.au/R/help/05/04/2715.html
## Tweaks by AJH to add commas and "and"
helper <- function(x){
digits <- rev(strsplit(as.character(x), "")[[1]])
nDigits <- length(digits)
if (nDigits == 1) as.vector(ones[digits])