Skip to content

Instantly share code, notes, and snippets.

View jwatzek's full-sized avatar

Julia Watzek jwatzek

View GitHub Profile
@jwatzek
jwatzek / mp1_sites.geojson
Last active July 11, 2019 14:31
ManyPrimates sites
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jwatzek
jwatzek / Qualtrics_PunishmentInterpolation.js
Last active April 16, 2019 01:31
Interpolate yr. and mos. from slider on log scale. Save to Embedded Data field for piping. If "Not applicable" (renamed "Keep the same") box checked, copy previous value.
Qualtrics.SurveyEngine.addOnload(function()
{
var answer = "${q://QID62/ChoiceNumericEntryValue/1}";
var sqrt32 = Math.pow(2, 1/3);
answer = parseFloat(answer);
answer = Math.pow(sqrt32, answer - 1);
var years = Math.floor(answer);
var months = answer % 1;
@jwatzek
jwatzek / Qualtrics_HideQuestionGoToNextPage.js
Created October 8, 2016 15:08 — forked from marketinview/hideQuestionGoToNextPage.js
Qualtrics: Hide Question and Go To Next Page. This script can be used if you want to randomize choices then carry them over in the same randomized order to subsequent questions. #qualtrics #js #hide #next
Qualtrics.SurveyEngine.addOnload(function() {
$(this.questionId).hide();
$('Buttons').hide();
$('NextButton').click();
});