I hereby claim:
- I am mononofu on github.
- I am mononofu (https://keybase.io/mononofu) on keybase.
- I have a public key ASC1qnxTcR3i04BarLJtpNvwW72CsF5E15THvTFAWmTalQo
To claim this, I am signing this object:
# Copyright 2022 DeepMind Technologies Limited. | |
# Licensed under the Apache License, Version 2.0 and CC BY 4.0. | |
# You may not use this file except in compliance with these licenses. | |
# Copies of the licenses can be found at https://www.apache.org/licenses/LICENSE-2.0 | |
# and https://creativecommons.org/licenses/by/4.0/legalcode. | |
"""Pseudocode description of the MuZero algorithm.""" | |
# pylint: disable=unused-argument | |
# pylint: disable=missing-docstring | |
# pylint: disable=g-explicit-length-test |
# Copyright 2022 DeepMind Technologies Limited. | |
# Licensed under the Apache License, Version 2.0 and CC BY 4.0. | |
# You may not use this file except in compliance with these licenses. | |
# Copies of the licenses can be found at https://www.apache.org/licenses/LICENSE-2.0 | |
# and https://creativecommons.org/licenses/by/4.0/legalcode. | |
"""Pseudocode description of the Stochastic MuZero algorithm. | |
This pseudocode was adapted from the original MuZero pseudocode. | |
""" |
# Copyright 2022 DeepMind Technologies Limited. | |
# Licensed under the Apache License, Version 2.0 and CC BY 4.0. | |
# You may not use this file except in compliance with these licenses. | |
# Copies of the licenses can be found at https://www.apache.org/licenses/LICENSE-2.0 | |
# and https://creativecommons.org/licenses/by/4.0/legalcode. | |
"""Pseudocode description of the MuZero Unplugged algorithm.""" | |
# pylint: disable=unused-argument | |
# pylint: disable=missing-docstring | |
# pylint: disable=g-explicit-length-test |
using ColorSchemes | |
using Dates | |
using Images | |
using Printf | |
colors = RGB{Float32}.(colorschemes[:inferno].colors) | |
n_colors = length(colors) | |
black = RGB{Float32}(0, 0, 0) | |
function interpolate_color(n) |
using ColorSchemes | |
using Dates | |
using Images | |
using Printf | |
using SIMD | |
const palette = RGB{Float32}.(colorschemes[:inferno].colors) | |
const n_colors = length(palette) | |
const black = RGB{Float32}(0, 0, 0) |
#!/usr/bin/python3 | |
import argparse | |
import os | |
import re | |
import subprocess | |
import zipfile | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument( |
#!/bin/bash | |
# Usage: health_checked.sh $UUID your command --with=args | |
UUID="$1" | |
PING_URL="https://hc-ping.com/${UUID}" | |
curl -fsS -m 10 --retry 5 -o /dev/null "${PING_URL}/start" | |
OUTPUT=$("${@:2}" 2>&1) | |
STATUS="$?" |
object Scramble extends App { | |
val words = io.Source.fromFile("/usr/share/dict/words").getLines() | |
val uniques = words.filter(! _.contains("'")).toList | |
// group words by what you get when you sort their individual characters | |
val scrambled_lookup = uniques.map(w => w.toList.sorted.mkString).zip(uniques).groupBy(_._1).map { | |
case (scrambled, ws) => (scrambled, ws.map(_._2)) | |
} | |
// words whose sorted versions collide | |
val non_uniques = scrambled_lookup.toList.map(_._2).sortWith(_.length > _.length).filter(_.length > 1) |
I hereby claim:
To claim this, I am signing this object: