Skip to content

Instantly share code, notes, and snippets.

Avatar

J. Voigt joyrexus

View GitHub Profile
@dswwsd
dswwsd / mobile-meta-links.html
Created Nov 20, 2012
iOS Web App Configuration
View mobile-meta-links.html
@tmcw
tmcw / the_code_more.md
Created Jul 8, 2013
An unpublished blog post
View the_code_more.md

The compiled code - the listing of laws in their most-current state that we could simply call 'The Code', is actually constructed by contractors like Westlaw and LexisNexis, who maintain the technology to manage it and hire people to read PDF-formatted bills from the Council's website and manually edit sections of the law to keep it up to date.

As a result, this contractor keeps the only complete digital copy of the code.

That is, the DC government creates changesets, or diffs, of the code. The code is the

@tmcw
tmcw / guide.md
Last active Jun 3, 2016
Whole Earth Guide
View guide.md

Whole Earth Guide

I'm not sure about this; GIS really got burned from being both a 'science' and a 'product' from the beginning, and there are blurry lines between what I think is essential and what I don't know because I never do it and am not a GIS person. Anyway.

A No-Bullshit Intro to Maps and GIS

  1. What Maps Are
  2. Data
  3. Information
  4. Transformation
@maxogden
maxogden / readme.md
Created Sep 28, 2011
SLEEP - syncable.org
View readme.md

Your API does REST, but can it SLEEP?

SLEEP (Syncable Lightweight Event Emitting Persistence) is an emerging standard for distributed data sync using HTTP and JSON. A generalized version of CouchDB's much lauded built-in replication, SLEEP extends the REST architecture to define a way in which databases can offer syncable JSON APIs that foster open data innovation by allowing developers to replicate entire databases over the net.


SLEEP comes from the Apache CouchDB project which is now widely known for it's multi-master streaming HTTP + JSON replication. This is possible in part because of the CouchDB _changes feed, which is a particular API that lets you see if there have been any changes made to the database since last time you synchronized. CouchDB can efficiently implement the _changes feed because of one subtle difference between it and most other databases: it stores a history of all changes that happen to the database, including deletes.

If you synchronize data from a remote source and then the

@josephspurrier
josephspurrier / httprouterwrapper.go
Last active Apr 13, 2017
Golang - Making julienschmidt/httprouter compatible using gorilla/context
View httprouterwrapper.go
// Source: http://nicolasmerouze.com/guide-routers-golang/
// Package httprouterwrapper allows the use of http.HandlerFunc compatible funcs with julienschmidt/httprouter
package httprouterwrapper
import (
"net/http"
"github.com/gorilla/context"
"github.com/julienschmidt/httprouter"
@ryanflorence
ryanflorence / Base.coffee
Created Sep 9, 2012
Base CoffeeScript Class, surprisingly useful.
View Base.coffee
################################################################################
# script: Base.coffee
# author: Ryan Florence <rpflorence@gmail.com>
# license: MIT-Style License
#
# A surprisingly useful base class for CoffeeScript. Inspired by my old
# friend, MooTools Class. Provides default options, mixins, and custom events.
class Base
defaults: {}
View fancy-without-features.js
import test from 'tape';
const before = test;
const after = test;
// beforeEach/afterEach rely on shared state.
// That's a big anti-pattern for testing.
// It's also silly to run something before and after
// ever test -- many of your tests won't need it.
View leap.json
{
"hands": [
{
"direction": [
0.187837,
0.097272,
-0.976745
],
"id": 3,
"palmNormal": [
@hugobdev
hugobdev / git-sync-fork.sh
Created Feb 21, 2014
Sync Fork On GitHub
View git-sync-fork.sh
# Sync fork with original repository
#
# Requires an "upstream" remote, pointing to original repo
# e.g. `git remote add upstream git@github.com:user/repo.git`
alias git-sync-fork="git fetch upstream; git checkout master; git merge upstream/master"
@inokappa
inokappa / taskRunner.go
Created Jul 14, 2017
Go で実装した AWS Step Function の Activity Worker
View taskRunner.go
package main
import (
"fmt"
"log"
"flag"
"os"
"os/exec"
"encoding/json"
"github.com/aws/aws-sdk-go/service/sfn"
You can’t perform that action at this time.