Skip to content

Instantly share code, notes, and snippets.

View erikhazzard's full-sized avatar

Erik Hazzard erikhazzard

View GitHub Profile
@erikhazzard
erikhazzard / factions.txt
Last active February 13, 2023 21:07
nexus city factions
# Nexus City Factions
While Nextria is rife with guilds, pirate crews, and other groups, few collectives have as much sway as the factions that dominate Nextrian society. These organizations, rooted in civilization for centuries, transcend borders and societies by folding Nextria’s people under unique purposes. Whether these purposes are for the good or ill of Nextria is unknown—and, in many ways, up to the adventurers who join them.
Nextria has three primary factions:
* the Graycloaks, anti-authoritarian revolutionaries and liberators
* the Order of Whispers, a network of spies and infiltrators under a secret patron
" ********************************************************************************
" Standard colors used in all ir_black themes:
" Note, x:x:x are RGB values
"
" normal: #f6f3e8
"
" string: #A8FF60 168:255:96
" string inner (punc, code, etc): #00A0A0 0:160:160
" number: #
" ********************************************************************************
@erikhazzard
erikhazzard / gist:3311383
Created August 10, 2012 05:38
class json example
classJson = {"classes": [
{"name": "Phil 165",
"id": "phil165",
"progress": 1.0 },
{"name": "Ed 111",
"id":"ed111",
"progress": 0.6 },
{"name": "CS 106B",
"id":"cs106b",
"progress": 0.7 },
@erikhazzard
erikhazzard / gist:6602963
Created September 18, 2013 00:53
Install CUDA, OpenCL, and PyOpenCL on EC2 with Ubuntu 12.04
#!/bin/bash
sudo apt-get update
sudo apt-get install gcc
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo apt-get update
sudo apt-get install cuda
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
sudo apt-get install opencl-headers python-pip python-dev python-numpy python-mako
@erikhazzard
erikhazzard / gist:2963791
Created June 21, 2012 04:09
less makefile example
CHECK=\033[32m✔\033[39m
HR= ==================================================
LESS_FILES = static/less/less_variables.less \
static/less/base.less \
static/less/layout.less \
module.exports.routeGetScreenshot = async function routeGetScreenshot (req, res) {
/**
* [GET] [/util/og/:roomId] This will return an image of a screen of
* the /util/og/:roomId endpoint
*/
// set the cache header to a more generous time, since this is used for share links and
// we don't want to be calling this 100k's time in a short period. Whatever this value is
// set to, it will returned a cached screenshot for that time period (in seconds). The trade
// off here is screenshot freshness with scale. NOTE: Most services cache OG images on their
@erikhazzard
erikhazzard / _.md
Created April 19, 2013 18:56
blurrrrrrrrrrrr FILTER fade
@erikhazzard
erikhazzard / _.md
Created August 12, 2013 18:51
opencl test
@erikhazzard
erikhazzard / index.html
Last active March 21, 2018 14:58
Blur / Fade Filter Effect
<html>
<head>
<meta charset="utf-8">
<style>body { position: fixed; top:0; left:0; bottom:0; right: 0; } svg { width: 100%; height: 100%} </style>
</head>
<body>
<svg></svg>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
@erikhazzard
erikhazzard / .block
Last active February 14, 2018 03:56
voronoi+boids-5-minimal-light
license: mit