Skip to content

Instantly share code, notes, and snippets.

@glmdgrielson
glmdgrielson / netwarriors.py
Created June 28, 2023 23:07
Net Warriors Initiative Tracker
#!/usr/bin/env python
"""Some simple initiative stuff for Net Warriors running.
"""
import random
import re
import sys
RNG = random.Random()
DICE_RE = re.compile(r"(?P<count>\d+)d(?P<sides>\d+)")
@glmdgrielson
glmdgrielson / phoenotopia.md
Last active June 30, 2022 21:07
A list of things to do in Phoenotopia!

Panselo

Heart Ruby

  • In your home village... it waits at a high place...
  • In your home village... it waits in the bedroom of a dear friend... [slingshot]
  • Within an ancient temple of amphibians... it waits behind a locked door...
  • High among the giant flowers... east of the local residents... a treasure rests on a leaf... [rocket boots]

Energy Gem

@glmdgrielson
glmdgrielson / shift_time.py
Last active December 11, 2021 01:39
A means to convert time into Desert Bus shifts
# This requires Python 3.2.
"""This is a module to convert time into a more useful measurement
that is the same all across the planet: Desert Bus shifts! Given
that they start at a fixed moment in a specific timezone, using
shift time is completely unambiguous.
"""
import datetime
from datetime import timezone, time, timedelta
#[macro_use]
extern crate nom;
use nom::alpha;
use nom::{
AsBytes, AtEof, Compare, CompareResult, Context, Err, ErrorKind, ExtendInto, FindSubstring,
FindToken, IResult, InputIter, InputLength, InputTake, InputTakeAtPosition, Offset, ParseTo,
Slice,
};
use std::fmt::{self, Display, Formatter};
@glmdgrielson
glmdgrielson / preprocessor_fun.h
Created November 2, 2017 22:56 — forked from joineral32/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,