Skip to content

Instantly share code, notes, and snippets.

View jstevans's full-sized avatar

John Stevans jstevans

  • Microsoft
  • Redmond, WA
  • 02:09 (UTC -07:00)
View GitHub Profile
@jstevans
jstevans / relics.ts
Created April 2, 2020 23:10
D&D relic generator
interface Spell {
name: string,
level: number,
savingThrow: string[],
spellAttack: string[],
source: string,
page: number,
school: string,
damageInflict?: string[],
Department Course Humanities Humanities (performance) Social Science Diversity
American Sign Language 121 true false false false
American Sign Language 122 true false false false
American Sign Language 123 true false false false
American Sign Language 221 true false false false
American Sign Language 222 true false false false
American Sign Language 223 true false false false
Anthropology 100 false false true true
Anthropology 104 false false false true
Anthropology 106 false false false true
import Crafter from './Crafter';
import { default as ItemInfo, Rarity } from './ItemInfo';
export default class CraftAttempt {
public _crafters: Crafter[] = [];
public _item: ItemInfo;
public _idealLocation: boolean = false;
constructor(public rarity: Rarity, public cost: number, public isMagical: boolean) {
this._item = new ItemInfo(rarity, cost, isMagical);
@jstevans
jstevans / cloudSettings
Created January 13, 2018 01:12
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-01-13T01:12:29.468Z","extensionVersion":"v2.8.7"}

Keybase proof

I hereby claim:

  • I am jstevans on github.
  • I am johnst (https://keybase.io/johnst) on keybase.
  • I have a public key ASAVUCbX1o-5IOpZ0r3xSppx6HWd3Mn80NT4Iqmtgdr2dgo

To claim this, I am signing this object:

@jstevans
jstevans / imgurGifRestarter.user.js
Created April 28, 2014 03:37
imgur GIF Restarter
// ==UserScript==
// @name imgur GIF Restarter
// @namespace imgurGifRestarter
// @match http://*.imgur.com/*
// @author John Stevans
// @description Restarts GIFs on imgur when you click on the image. Credit tghw (http://stackoverflow.com/a/3550261) and spinon (http://stackoverflow.com/a/3191946) of StackOverflow.
// ==/UserScript==
function addJQuery(callback)
{