Giter Club home page Giter Club logo

jspsi-go-example's Introduction

jspsi-go-example

This is an updated example of the integration between PsiTurk and jsPsych. It is a rewrite of the example code given in the jsPsych tutorial using Literate CoffeeScript. It uses some code used in jodeleeuw's experiment example (also available on GitHub).

For a breakdown of how the experiment works, see the Literate CoffeeScript file, or, if you prefer, see the compiled javascript.

The experiment file templates/exp.html calls the static/js/experiment.js experiment.

See the PsiTurk Quick Start Guide for info on how to get up and running quickly. Instead of using psiturk-setup-example to create example code, you can check out this repository.

git clone --recursive https://github.com/jtth/jspsi-go-example.git

You can use git clone https://github.com/jtth/jspsi-go-example.git and symlink your own local copy of jsPsych if you'd prefer.

Or just grab it using the PsiTurk Experiment Exchange.

psiturk-install NiyHgcEBwwH7uQebC2oWPN

Once you have the directory on your computer, go into it and start PsiTurk.

cd jspsi-go-example
psiturk

If you want to edit the CoffeeScript experiment and have it installed, run this in the directory with experiment.litcoffee to automatically recompile the script into javascript every time you save.

coffee -c -w experiment.litcoffee

All of this is available under an MIT license. If you like this and want more examples in CoffeScript, consider leaving a tip through PayPal or through Cash.

jspsi-go-example's People

Contributors

saralilyb avatar

Stargazers

Stefan Uddenberg avatar GAURAV avatar William Ryan avatar Becky Gilbert avatar Fred Callaway avatar Josh de Leeuw avatar

Watchers

 avatar James Cloos avatar

Forkers

satwantkumar

jspsi-go-example's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.