Run this file on your local machine without a web server
It should fail because (a) chrome doesn't allow requests on a local machine (b) submit.php doesn't exist (or shouldn't in this directory)
But it claims to succeed!
| mydate1 = as.Date("2000-01-01") | |
| mydate2 = as.Date("2000-03-01") | |
| # EASY: sequence with every other int | |
| seq(1, 60, by=2) | |
| # HARD: sequence with every other day | |
| seq(mydate1, mydate2, by=???) # day? | |
| # pretend you're new to R | |
| # you don't know about lubridate or POSIX |
| library(ggplot2) | |
| data = data.frame( | |
| a = rep(LETTERS[24:26], 3), | |
| b = 1:9, | |
| c = rep(LETTERS[1:3], each=3) | |
| ) | |
| # uncomment to set facet order by refactoring the data | |
| #data$a = factor(data$a, levels=c('Y', 'X', 'Z')) |
| a = {number: 1}; // works | |
| a = [1, 2, 3].map( n => 1 ); // works | |
| a = [1, 2, 3].map( n => {number: 1} ); // unexpected ':' | |
| a = [1, 2, 3].map( n => {return {number: 1};} ); // works |
Run this file on your local machine without a web server
It should fail because (a) chrome doesn't allow requests on a local machine (b) submit.php doesn't exist (or shouldn't in this directory)
But it claims to succeed!
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <script src="https://d3js.org/d3.v4.0.0-rc.2.min.js"></script> | |
| <script> | |
| function callback1(arg1) { | |
| console.log("COMPLETED. arg1:" + arg1); | |
| console.log(arg1) | |
| } | |
| function callback2(arg1, arg2) { |
| downRule = 3 # How many correct answers in a row do you need to drop down a level? | |
| upRule = 1 # How many incorrect answers in a row do you need to step up a level? | |
| stepSizeDown = .25 # If the current staircase value is 1, how much do you subtract to get to the next level down? | |
| stepSizeUp = 1 / (1 - stepSizeDown) - 1 # This assumes that staircase values are fixed | |
| ratio = stepSizeUp / (stepSizeDown + stepSizeUp) | |
| exponent = downRule / upRule | |
| inverseExponent = 1 / exponent # because we're solving in reverse |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <title>SANKEY Experiment</title> | |
| <style> | |
| .node rect { | |
| cursor: move; | |
| fill-opacity: .9; | |
| shape-rendering: crispEdges; | |
| } |
| license: gpl-3.0 |
| license: gpl-3.0 | |
| height: 600 |
| license: gpl-3.0 | |
| height: 1030 | |
| scrolling: yes |