Skip to content

Instantly share code, notes, and snippets.

View Mottokrosh's full-sized avatar

Frank Reding Mottokrosh

View GitHub Profile
//
// The FE state:
//
let queryState = [
{
name: 'keywords',
title: 'Keywords',
value: 'red' // null|string
},
@Mottokrosh
Mottokrosh / gen_cyphers.js
Last active August 28, 2015 10:50
A Node utility to roll up random cyphers from the Numenera Technology Guide
#!/usr/bin/env node
function getRandomIntInclusive(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
(function genCypher() {
var list = ['A', 'B', 'C', 'D', 'E'];
var max = process.argv[2] || 5;