Skip to content

Instantly share code, notes, and snippets.

View nitz's full-sized avatar
less bitter more glitter

Chris Dailey nitz

less bitter more glitter
View GitHub Profile
@nitz
nitz / wild_magic.js
Created December 2, 2017 20:40
Create Wild Magic Surge rollable table in Roll20.
/* Wild Magic Surge table generator by tobloef
Paste this into your browser's developer console (F12)
The script will create a rollable table named "Wild Magic Surge" with all 50 possibilities.
You can of course use this script to create other rollable tables, all you have to do is to replace the values in the rows variable.
You can also define a weight for each possibility by including a weight property like this:
{ name: "Some name here", weight: 2 }
Enjoy!
@nitz
nitz / gist:dd5189a6032cce17516268388f732b1d
Created September 13, 2016 18:08 — forked from AnnaCrumina/gist:71c837eab6e30538dd19
Smooth scroll for anchor links
<script>
jQuery('a[href*=#]:not([href=#])').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') || location.hostname == this.hostname) {
var target = jQuery(this.hash);
target = target.length ? target : jQuery('[name=' + this.hash.slice(1) +']');
if (target.length) {
var top_offset = '100';
jQuery('html,body').animate({
scrollTop: target.offset().top - top_offset
@nitz
nitz / keybase_proof.md
Created July 2, 2015 18:32
Keybase Proof

Keybase proof

I hereby claim:

  • I am nitz on github.
  • I am cmd (https://keybase.io/cmd) on keybase.
  • I have a public key whose fingerprint is 0219 59C4 ED7E AF7A DEA1 16FB DAB2 C9E0 E926 E40D

To claim this, I am signing this object: