Skip to content

Instantly share code, notes, and snippets.

View voidfiles's full-sized avatar

Alex Kessinger voidfiles

View GitHub Profile

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 / 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.

@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 = {
<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 / 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

@voidfiles
voidfiles / .gitignore
Last active April 3, 2016 00:09
Example of lambda router
node_modules
@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 / gist:a24fea5fd56a8f81c361c84bd29e8411
Created September 23, 2016 21:47
Multiservice Jenkinsfile Reuse

Let me know if this sounds, right.

I work at a company that has N services. Each service has it's own deployable artifact. Each artifact creation process is unique, but the pipeline, and deployment processes are similar. As we grow we are looking to create more services. I would like to manage this complexity in a couple of ways.

  1. We use Jenkins
  2. I'd like to use Jenkinsfile's to manage the jobs
  3. The artifact process should stay unique, some shared code loaded via fileLoader.fromGit
  4. I plan on using a shared deployment job configured via params
  5. I plan on using a shared pipeline job configured via params
@voidfiles
voidfiles / 01_build.sh
Last active May 3, 2017 22:03
Making a relocatable virtualenv
#! /bin/bash -e
set -ex
if [[ -z "${BUILD_TAG}" ]]; then
echo "BUILD_TAG must be set before running this script";
fi
export WORKSPACE=$(pwd)
@voidfiles
voidfiles / index.json
Created May 19, 2017 22:08
Hugo JSON Feed Template add to layouts/index.json
{
"version": "https://jsonfeed.org/version/1",
"title": {{ .Site.Title | jsonify }},
"home_page_url": {{ .Permalink | jsonify }},
{{ with .OutputFormats.Get "json" -}}
"feed_url": {{ .Permalink | jsonify }},
{{- end }}
{{ if (.Site.Params.author) or (.Site.Params.author_url) -}}
"author": {
{{ if .Site.Params.author -}}