Skip to content

Instantly share code, notes, and snippets.

View Aarowaim's full-sized avatar

Aaron L Aarowaim

  • Alberta, Canada
View GitHub Profile
@Aarowaim
Aarowaim / foundryvtt-token-vision.js
Last active May 18, 2020 05:35
A macro for the Foundry virtual tabletop that lets a user configure their token's vision and lighting setting. Has a dependency on About Time by Tim Posney.
if (canvas.tokens.controlled.length === 0)
ui.notifications.error("Please select a token");
if (game.modules.get("about-time").active != true)
ui.notifications.error("About Time isn't loaded");
let namedfields = (...fields) => {
return (...arr) => {
var obj = {};
fields.forEach((field, index) => {
'''A tool to simplify writing solutions to programming puzzles'''
class Part:
def __init__(self):
self.output_buffer = []
self.accumulator = 0
def text(self, *text):
line = ' '.join([str(t) for t in text])