I hereby claim:
- I am iancal on github.
- I am iancal (https://keybase.io/iancal) on keybase.
- I have a public key ASDqDUUQp5o9mLTRp9oUwU1_XKEziIE1rnORdtAgHteCbAo
To claim this, I am signing this object:
| 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] |
| <!doctype html> | |
| <head> | |
| </head> | |
| <body> | |
| <section name="anchor1"> | |
| I am the INCLUDED THING | |
| <section name="anchorsub"> | |
| I am a teeny tiny inclusion | |
| </section> | |
| </section> |
| FROM dockerfile/elasticsearch | |
| RUN mkdir /elasticsearch/plugins | |
| ADD elasticsearch.yml /elasticsearch/config/elasticsearch.yml | |
| RUN ["/elasticsearch/bin/plugin", "--install", "mobz/elasticsearch-head"] |
| 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 |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| set -ex | |
| rm -rf test_example | |
| mkdir test_example | |
| cd test_example | |
| echo "Setup DVC" | |
| dvc init --no-scm |
| from functools import lru_cache | |
| @lru_cache(1) | |
| def cached(): | |
| return ["Do cached entries safely return the same thing?"] | |
| def uncached(): | |
| return ["Do cached entries safely return the same thing?"] | |
| import streamlit as st | |
| import streamlit.ReportThread as ReportThread | |
| from streamlit.server.Server import Server | |
| import pandas as pd | |
| import json | |
| import time | |
| def trigger_rerun(): | |
| ctx = ReportThread.get_report_ctx() |
| import streamlit as st | |
| import streamlit.ReportThread as ReportThread | |
| from streamlit.server.Server import Server | |
| import pandas as pd | |
| import json | |
| import time | |
| def trigger_rerun(): | |
| ctx = ReportThread.get_report_ctx() |
| from pyarrow import csv | |
| import pyarrow.parquet as pq | |
| table = csv.read_csv("BasicCompanyDataAsOneFile-2022-09-01.csv") | |
| sorted_table = table.sort_by([("CompanyName", "ascending")]) | |
| pq.write_table(sorted_table, "basic_company_data_sorted.parquet") |