Skip to content

Instantly share code, notes, and snippets.

@EE2dev
EE2dev / .block
Last active September 27, 2016 19:40
Number guessing
license: mit
@EE2dev
EE2dev / .block
Last active September 27, 2016 19:27
number guessing (english)
license: mit
@EE2dev
EE2dev / README.md
Last active September 30, 2016 21:04
birthday guesser

Here is the puzzle, I address with this block:

Can you guess a birthday (just 1 out of 366 days, i.e. no year) under the following conditions:

  • just ask 9 yes/no questions
  • all questions must be independent, i.e. one question must not depend on an answer of a previous question
  • answering the questions should be straight forward, i.e. any 6-year old kid can answer them
@EE2dev
EE2dev / Readme.md
Last active November 9, 2016 22:44
birthday guesser (unshuffled version)

Here is the puzzle, I address with this block:

Can you guess a birthday (just 1 out of 366 days, i.e. no year) under the following conditions:

  • just ask 9 yes/no questions
  • all questions must be independent, i.e. one question must not depend on an answer of a previous question
  • answering the questions should be straight forward, i.e. any 6-year old kid can answer them

(unshuffled version)

@EE2dev
EE2dev / index.html
Last active December 18, 2017 23:52
sequence explorer - highlight a vertical path
<!DOCTYPE html>
<meta charset="utf-8"> <!-- also save this file as unicode-8 ! -->
<head>
<link rel="stylesheet" type="text/css" href="https://ee2dev.github.io/libs/sankeySeqExplorer.v20.css">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ee2dev.github.io/libs/sequence-explorer.v20.min.js"></script>
<style>
path.lsx0.lsyhome.ltx1.ltyaccount,
path.lsx1.lsyaccount.ltx1.ltysearch,
@EE2dev
EE2dev / .block
Last active January 22, 2017 22:53
Sequences sunburst
license: mit
@EE2dev
EE2dev / index.html
Last active December 18, 2017 23:50
sequence explorer - highlight path
<!DOCTYPE html>
<meta charset="utf-8"> <!-- also save this file as unicode-8 ! -->
<head>
<link rel="stylesheet" type="text/css" href="https://ee2dev.github.io/libs/sankeySeqExplorer.v20.css">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ee2dev.github.io/libs/sequence-explorer.v20.min.js"></script>
<style>
path.lsx0.lsyhome.ltx1.ltysearch, path.lsx1.lsysearch.ltx2.ltyproduct,
path.lsx2.lsyproduct.ltx3.ltysearch, path.lsx3.lsysearch.ltx4.ltyproduct {
@EE2dev
EE2dev / cs_new_n2.csv
Last active December 19, 2017 00:00
sequence explorer - small multiples
value sourceX sourceY targetX targetY region age
100 1st weather 2nd sports United States 18-30
100 1st weather 2nd weather United States 18-30
10 1st weather 2nd health United States 18-30
40 2nd weather 3rd travel United States 18-30
10 1st weather 2nd travel United States 18-30
100 1st health 2nd health United States 18-30
120 1st health 2nd sports United States 18-30
100 2nd weather 3rd weather United States 18-30
10 3rd weather 4th health United States 18-30
@EE2dev
EE2dev / index.html
Last active December 18, 2017 23:42
sequence explorer - no web server
<!DOCTYPE html>
<meta charset="utf-8"> <!-- also save this file as unicode-8 ! -->
<head>
<link rel="stylesheet" type="text/css" href="https://ee2dev.github.io/libs/sankeySeqExplorer.v20.css">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ee2dev.github.io/libs/sequence-explorer.v20.min.js"></script>
</head>
<body>
<!-- A: paste data in pre#data tag -->
@EE2dev
EE2dev / index.html
Last active April 19, 2024 12:49
sequence explorer - single chart
<!DOCTYPE html>
<meta charset="utf-8"> <!-- also save this file as unicode-8 ! -->
<head>
<link rel="stylesheet" type="text/css" href="https://ee2dev.github.io/libs/sankeySeqExplorer.v20.css">
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://ee2dev.github.io/libs/sequence-explorer.v20.min.js"></script>
</head>
<body>
<script>