Skip to content

Instantly share code, notes, and snippets.

View JDillon522's full-sized avatar

Joseph Dillon JDillon522

View GitHub Profile
@AndruC
AndruC / Roll20 Macros.md
Last active May 10, 2024 06:25
Macros that I use to improve my D&D games

Macro Must-Haves

These are my must-have macros for running games online. I make full use of the compendium, which gives these macros access to common actions and rolls, saving me time.

Remember to add /w gm or @{selected|wtype} to hide sensitive info from your players. WTYPE is an attribute used in the 5th Edition OGL character sheet, a prerequisite for most of these.

Here's what my bar looks like.

Macro Quickbar

@dougal83
dougal83 / equal-value-validator.ts
Created November 24, 2016 19:05
Angular 2 validator to compare two controls in a form (e.g. passwords on signup forms) v0.1
/** '/src/app/shared/equal-value-validator.ts' */
/** Just a demo/draft, please ensure your implementation is sound before going live */
import { FormGroup, ValidatorFn } from '@angular/forms';
/** this control value must be equal to given control's value */
export function equalValueValidator(targetKey: string, toMatchKey: string): ValidatorFn {
return (group: FormGroup): {[key: string]: any} => {
const target = group.controls[targetKey];
const toMatch = group.controls[toMatchKey];