Skip to content

Instantly share code, notes, and snippets.

a = [1, 2, 3]
b, None, c = a
#!/usr/bin/env python
f = [(1,9,'blue'), (8,4,'blue'), (1,5,'green'), (7,8,'blue')]
total = {}
summed = {}
for x in sorted(f):
if x[2] not in summed:
summed[x[2]] = x[1]
Bite hit AC 28 for 10 slash/pierce/bludgeon +4 acid (14 total)
Claw 1 hit AC 20 for 10 slash/pierce/bludgeon +5 acid (15 total)
Claw 2 hit AC 30 for 13 slash/pierce/bludgeon +3 acid (16 total)
Rake 1 hit AC 20 and CMD 27 for 22 slash/pierce/bludgeon +11 acid (33 total)
Rake 2 hit AC 30 and CMD 1000 for 23 slash/pierce/bludgeon +8 acid (31 total)
Rend hit AC 20 for 21 slash/pierce/bludgeon +3 acid (24 total)
Hit AC 20 for 31 slash/pierce/bludgeon +8 acid damage (39 total)
Hit AC 28 for 41 slash/pierce/bludgeon +12 acid damage (53 total)
Hit AC 30 for 54 slash/pierce/bludgeon +15 acid damage (69 total)
#!/usr/bin/perl -w
use strict;
my @colors = ('orange',
'red',
'green',
'blue',
'purple',
'silver');
Gnome Sorcerer (Fire Elemental Bloodline)
Str 10
Dex 14
Con 12
Wis 8
Int 10
Cha 18
Armor Class 13 (+2 dex, +1 size)
(?:(?:\r\n)?[\t])*(?:(?:(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[\t]))*"(?:(?:\r\n)?[\t])*)(?:\.(?:(?:\r\n)?[\t])*(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[\t]))*"(?:(?:\r\n)?[\t])*))*@(?:(?:\r\n)?[\t])*(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[\t])*)(?:\.(?:(?:\r\n)?[\t])*(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[\t])*))*|(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[\t]))*"(?:(?:\r\n)?[\t])*)*\<(?:(?:\r\n)?[\t])*(?:@(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[\t])*)(?:\.(?:(?:\r\n)?[\t])*(?:[^()<>@,;:\\".\[\]\000-\031]+(?:(?:(?:\r\n)?[\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|
Human Sorcerer (Fey) 2
Str 10 Dex 10 Con 10 Wis 10 Int 8 Cha 20
10 Hitpoints
AC 10 Touch 10 Flat Footed 10
Fort +0 Reflex +0 Will +3
BAB +1 CMB +1 CMD 11
Spells per day:
1: 6
#!/usr/bin/env python
import shutil
file_a='file_a'
file_b='file_b'
output='a+b'
f = open(output, 'wb')
shutil.copyfileobj( open(file_a, 'rb'), f)
brosenberg@veldrak:/tmp/test$ ls *
total 0
-rw-r--r-- 1 brosenberg wheel 0 Aug 18 10:32 -la
drwxr-xr-x 3 brosenberg wheel 102 Aug 18 10:32 .
drwxrwxrwt 10 root wheel 340 Aug 18 10:32 ..
brosenberg@veldrak:/tmp/test$ ls -- *
-la
Human Qinggong Flowing Monk 1
Lawful Neutral
Str 15 Dex 14 Con 12 Wis 14 Int 10 Cha 8
Initiative +4
10hp (1d8+2)
Fort +3 Reflex +4 Will +4
AC 14 Flat Footed 12 Touch 14 (+2 Dex, +2 Wis)
BAB +0 CMB +2 (+4 on Trip) CMD 14 (16 vs. Trip)
Flurry: +1/+1 Unarmed Strike 1d6+2 x2