Skip to content

Instantly share code, notes, and snippets.

@scottsexton
scottsexton / roll_stat_blocks.py
Created October 28, 2021 14:34
Common Stats When Rolling 4d6 Drop Lowest
#!/usr/bin/env python3
import itertools
import random
the_results = dict()
def roll4dl():
roll = [random.randint(1,6) for x in range(0,4)]
roll.sort(reverse=True)

Keybase proof

I hereby claim:

  • I am scottsexton on github.
  • I am grafumbly (https://keybase.io/grafumbly) on keybase.
  • I have a public key ASDZjU0_IMYx5TcA8SKyb1k4dAoVXwb6Qaq1tqe1JnlGYwo

To claim this, I am signing this object:

@scottsexton
scottsexton / database
Last active August 29, 2015 14:07
Q Filter behavior change between Django 1.6.7 and Django 1.7
+------------+
| Owners |
+----+-------+
|id |name |
+----+-------+
| 1 |Alice |
+----+-------+
| 2 |Bob |
+----+-------+
| 3 |Steve |
@scottsexton
scottsexton / keybase.md
Created April 13, 2014 23:54
Keybase Verification

Keybase proof

I hereby claim:

  • I am scottsexton on github.
  • I am grafumbly (https://keybase.io/grafumbly) on keybase.
  • I have a public key whose fingerprint is FCDE EE9F 8527 6DDB 8C38 3A18 9F8A AD87 99F3 D4A8

To claim this, I am signing this object: