Skip to content

Instantly share code, notes, and snippets.

@mcpower
mcpower / !toss.md
Created March 28, 2019 12:40 — forked from mossbanay/bot.py

WHO GIVES A TOSS?

The rules of the game are as follows:

  • We play a total of N_GAMES times
  • In each game, there are N_TOSSES made
  • You can choose to bet on any of those tosses
  • You are given the odds (which are constant for each game) before starting
  • You are given your starting money before starting
  • Each game a new probability of the coin landing heads is chosen from some distribution within [0, 1] (see judge.py)
  • The probability is constant for each game
@mcpower
mcpower / aoc-2018.css
Last active November 28, 2019 21:28 — forked from lynn/aoc-2018.css
My user stylesheet for Advent of Code
/* Sans-serif for most content. */
body { font-family: "Ubuntu", "Segoe UI", sans-serif; line-height: 1.3em; }
input~span:before, .leaderboard-entry, .privboard-row { font-family: "Source Code Pro", monospace; letter-spacing: -1px; }
/* Emphasis = bold, instead of glowy. */
body * { text-shadow: none !important; }
article em { font-weight: bold; }
/* Center content. */
main>article, main>p, pre.calendar, pre.stats, form, .leaderboard-entry, header { width: 40em !important; margin-left: auto; margin-right: auto; }
@mcpower
mcpower / osugame_func+.user.js
Created March 15, 2016 00:12
Userscript for /r/osugame
// ==UserScript==
// @name osugame_func+
// @namespace /r/osugame
// @author /u/N3G4
// @description Adds osu! related functionality to /r/osugame
// @include *reddit.com/r/osugame*
// @version 1.2.2
// @run-at document-end
// @grant GM_xmlhttpRequest
// ==/UserScript==