Skip to content

Instantly share code, notes, and snippets.

View voidfiles's full-sized avatar

Alex Kessinger voidfiles

View GitHub Profile
@voidfiles
voidfiles / context_local.py
Created May 3, 2016 06:38 — forked from virtuald/context_local.py
Implements a threadlocal-like mechanism for Tornado
'''
This is significantly derived from StackContext, Apache 2.0 license
'''
from tornado.stack_context import StackContextInconsistentError, _state
class ContextLocal(object):
'''
Implements a threadlocal-like mechanism that can be used to track data
across tornado asynchronous calls. This is very similar to (and based
@voidfiles
voidfiles / .gitignore
Last active April 3, 2016 00:09
Example of lambda router
node_modules
@voidfiles
voidfiles / 5th_discipline.md
Created January 24, 2016 06:04
Notes on the The Fifth Discipline: The Art & Practice of The Learning Organization
Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 1 column 28
---
Title: The Fifth Discipline: The Art & Practice of The Learning Organization
Author: Peter M. Senge
---

Definitions

Discipline in this context means the pursuit of mastery.

Notes

<form id="checklist">
<fieldset>
<h2 id="alignment"><span>Alignment</span></h2>
<p class="description">Unifying group and individual direction and goals around the singular vision of the organization.</p>
<ul class="check-list">
<li class="check-item filter-item i1 culture">
<label for="01_cm1" name="01_cm1" class="label">
@voidfiles
voidfiles / secmatics_to_json_schema.py
Created November 8, 2014 00:11
Schematics to JSONSchema
import json
from schematics.types.base import (BaseType, NumberType, IntType, LongType, FloatType,
DecimalType, BooleanType)
from schematics.types.compound import ModelType, ListType
__version__ = '1.0'
SCHEMATIC_TYPE_TO_JSON_TYPE = {
@voidfiles
voidfiles / README.md
Last active August 29, 2015 13:58 — forked from mbostock/.block

This choropleth encodes # of hate groups with data from the Southern Poverty Law Center.

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

@voidfiles
voidfiles / comments.html
Created February 13, 2014 01:25
Embed the App.net comments widget on your website.
<script src="https://d105v2jof9gtr3.cloudfront.net/embed.js" id='adn-comments'></script>
@voidfiles
voidfiles / discuss.html
Created February 8, 2014 00:23
An alternate way to discuss things.
<a href='javascript:var dsqs = document.getElementById('disqus_thread'), s = document.createElement('script');s.id = 'adn-comments';s.src = 'https://d105v2jof9gtr3.cloudfront.net/embed.js';dsqs.innerHTML = '';dsqs.appendChild(s);'>Discuss</a>
@voidfiles
voidfiles / comment_embed.html
Last active October 18, 2019 10:18
Embedable app.net comments.
<script id='adn-comments' src="http://html5.alexkessinger.net/embed.js" type="text/javascript" charset="utf-8" async defer></script>