Skip to content

Instantly share code, notes, and snippets.

Avatar
🌳

Robin van Emden robinvanemden

🌳
View GitHub Profile
View ChangeBlindnessInQualtricsJquery.js
var qthis;
var globalInterval;
var counter = 0;
var continuecounter = 0;
Qualtrics.SurveyEngine.addOnload(function() {
qthis = this;
});
jq(window).load(function() {
View ChangeBlindnessInQualtricsHTML.html
<div id="basicdiv" style="position: relative; left: 0; top: 0; width: 920px; height: 575px;background-color:#666666;">
<img id="imgmask" src=
"https://uleidenss.eu.qualtrics.com/CP/Graphic.php?IM=IM_0Mw5SEViwkr67BP"
style="position: absolute; top: 0; left: 0; width: 920px; height: 575px; z-index: 1;">
<img id="imgself1" src=
"https://uleidenss.eu.qualtrics.com/CP/Graphic.php?IM=IM_8wE16Ir2f8GOW2h"
style="position: absolute; top: 0; left: 0; width: 920px; height: 575px; z-index: 2;">
<img id="imgself2" src=
"https://uleidenss.eu.qualtrics.com/CP/Graphic.php?IM=IM_5mNxaldk6WwG4SN"
View Authorware-to-Arduino_Arduino-Code.ino
/* Control a Peltier Cooler over Arduino Motor Shield from Authorware
Developed for Arduino Uno with a Velleman VMA23 or KA03 Motor Shield
The circuit:
* Peltier elements connected to the motor outputs A and B
* 50 V (max.) external power supply connected to motor input
Created 2015
by Robin van Emden
View read_sensor_data.R
####
#
# read_sensor_data.R
#
# Import script. Parses MLX sensor data
#
# Robin van Emden - robin@pavlov.io - 2015
#
####
@robinvanemden
robinvanemden / LiF_Permutation_Test.py
Last active Dec 3, 2015
Testing sensitivity of LiF to missing data and permutations
View LiF_Permutation_Test.py
# -*- coding: utf-8 -*-
## IPython Reset
#from IPython import get_ipython
#get_ipython().magic('reset -sf')
##############################################################################
import numpy as np
View LiF_StreamingBandit_Local_Test.py
# -*- coding: utf-8 -*-
#from IPython import get_ipython
#get_ipython().magic('reset -sf')
import numpy as np
import matplotlib.pyplot as plt
import json
##############################################################################
View LiF_Decoy_on_StreamingBandit_Test.R
library(ggplot2)
library(jsonlite)
library(rmongodb)
setwd("C:/Users/User/Desktop/LiF")
BASE_URL = "http://localhost:8080"
key = "51fc58011"
question_nr = 2626
customers <- 4000
View LiF_StreamingBandit_Local_Server.py
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import urllib,json,codecs
#change to pymongo for greater compatibility
import iopro
def getobs( x, max = 5, err=0 ):
if (err==0):
View LiF_Decoy_Feasibility_Test.R
library(Cairo)
library(ggplot2)
library(animation)
############################## configuration ##############################
# set working directory
setwd("C:/Users/robin/Desktop/Monopolist")
View LiF_StreamingBandit_Lib_Ujson.py
# Implementation of Lock in Feedback.
# -*- coding: utf-8 -*-
from libs.base import *
import numpy as np
import ujson as json
import sys
class Lif:
def __init__(self, theta, x0=1.0, A=1.4, T=100, gamma=.004, omega=0.8, lifversion=2):