Skip to content

Instantly share code, notes, and snippets.

View kristian-lange's full-sized avatar

Kristian Lange kristian-lange

View GitHub Profile

How to Turn a PsychoPy Experiment into a JATOS Study

Create a Study in JATOS

  1. Open JATOS in your browser. (Need to install JATOS locally? Find out how here).
  2. Create a new study: Click on Studies to open the sidebar, then select +, and finally New Study.
  3. JATOS will create a new study and display its study page. Make a note of the study assets folder name; you'll need it later. You can find it at the top of your study page. By default, it will look similar to 0413af8c-8512-4105-b89b-08a7f557cb57.
  4. Add a new component: Click the New Component button. In the window that appears, enter a title (this is up to you) and type index.html into the 'HTML file path' field. Then, press Add.
@kristian-lange
kristian-lange / caddy.sh
Last active December 15, 2018 16:22 — forked from Jamesits/caddy.sh
Install Caddy Server on Ubuntu with Systemd.
#!/bin/bash
# This shell script installs and starts Caddy (https://caddyserver.com/) on Debian based distros.
# It uses Caddy's personal license (https://caddyserver.com/products/licenses).
# This script is a fork from https://gist.github.com/Jamesits/2a1e2677ddba31fae62d022ef8aa54dc.
# It will by default install all plugins; you can customize this behavior on line 7.
apt update
apt install curl
curl https://getcaddy.com | bash -s personal
@kristian-lange
kristian-lange / gist:7605e6cd2c643313022eb796e15458fa
Created July 24, 2016 15:46
Why use Base64 encoding for JavaScript?
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />