This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint, shuffle | |
from collections import Counter | |
DOORS = 3 | |
EXPERIMENTS = 1000 | |
def get_doors(): | |
doors = [True] + [False] * (DOORS - 1) | |
shuffle(doors) | |
return doors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM dockerfile/elasticsearch | |
RUN mkdir /elasticsearch/plugins | |
ADD elasticsearch.yml /elasticsearch/config/elasticsearch.yml | |
RUN ["/elasticsearch/bin/plugin", "--install", "mobz/elasticsearch-head"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<head> | |
</head> | |
<body> | |
<section name="anchor1"> | |
I am the INCLUDED THING | |
<section name="anchorsub"> | |
I am a teeny tiny inclusion | |
</section> | |
</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Queen = (Int,Int) | |
solveNot6kplus2 :: Int -> [Queen] | |
solveNot6kplus2 n = firstHalf ++ secondHalf | |
where | |
firstHalf = [(j, 2 * j) | j <- range] | |
secondHalf = [(n `div` 2 + j, 2 * j - 1) | j <- range] | |
range = [1 .. n `div` 2] | |
solveNot6k :: Int -> [Queen] |
NewerOlder