This file contains 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
defmodule FizzBuzz do | |
def fizzbuzz(words \\ [{3, "Fizz"}, {5, "Buzz"}], min \\ 1, max \\ 100) do | |
min..max |> Enum.map(&_fizznum(&1, words)) | |
end | |
def _fizznum(n, words) do | |
w = words |> Enum.map(&_checkword(&1, n)) |> Enum.join("") | |
case w do | |
"" -> n | |
_ -> w |
This file contains 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
defmodule ProbabilityWeight do | |
@moduledoc """ | |
A collection of functions for randomly choosing from a weighted list | |
""" | |
@doc """ | |
Transforms a list of {item, weight} tuples into two lists: items and weights | |
Items with weights less than 1 or non-integer weights are skipped | |
""" |
This file contains 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
#!/usr/bin/env python3 | |
import click | |
from typing import * | |
""" | |
Fizz Buzz Pow Pop Bang | |
Like your classic FizzBuzz but with more interactivity and control | |
of which numbers get replaced |
This file contains 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
sudo nvram BootAudio=%01 |
This file contains 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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=<your-smaller-file>.pdf <yourfile>.pdf |
This file contains 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
Level | XP required | Total XP | Unlocked items | Ball | Balls | Potion | Potions | Max? | Revives | Razz Berries | Incense | Lucky Eggs | Incubators | Lure Modules | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 0 | 0 | |||||||||||||
2 | 1,000 | 1,000 | Poké | 10 | |||||||||||
3 | 2,000 | 3,000 | Poké | 15 | |||||||||||
4 | 3,000 | 6,000 | Poké | 15 | |||||||||||
5 | 4,000 | 10,000 | Gyms, Potions, Revives | Poké | 20 | Normal | 10 | 10 | 1 | ||||||
6 | 5,000 | 15,000 | Poké | 15 | Normal | 10 | 5 | 1 | |||||||
7 | 6,000 | 21,000 | Poké | 15 | Normal | 10 | 5 | 1 | |||||||
8 | 7,000 | 28,000 | Razz Berry | Poké | 15 | Normal | 10 | 5 | 10 | 1 | |||||
9 | 8,000 | 36,000 | Poké | 15 | Normal | 10 | 5 | 3 | 1 |
This file contains 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
Level | XP required | Total XP | Unlocked items | Rewards | |
---|---|---|---|---|---|
1 | 0 | 0 |