Skip to content

Instantly share code, notes, and snippets.

View nikolaswise's full-sized avatar
🌵

Nikolas Wise nikolaswise

🌵
View GitHub Profile
@nikolaswise
nikolaswise / WebCartography.md
Last active August 29, 2015 14:19
Ten easy steps!

Concept

Lower Albina looks at using classical analog-era metaphors to address web cartography and creating of the 'map'. At it's root, this conceptual model requires 3 layers:

  1. Base Layer
  2. Study Layer
  3. Reference Layer

This is similar to the ideas behind basemap/layers/labels, but simplified. Each layer has it's own, very narrow, scope.

@nikolaswise
nikolaswise / index.js
Last active August 29, 2015 14:19
LAYERS ON A MAP OMG
// Build the map
var map = L.map('map', {
scrollWheelZoom: false,
doubleClickZoom: false,
zoomControl: false,
center: [45.539, -122.671],
zoom: 16
})
var baseLayer = L.tileLayer('http://{s}.ashbu.cartocdn.com/nikolaswise/api/v1/map/86e05ccc48f4eb1bc6e5b11531870916:1429636411308.12/{z}/{x}/{y}.png')
@nikolaswise
nikolaswise / scakes.md
Created April 24, 2015 20:13
Web Mercator Zoom Level to Scale / Resolution at Equator

Scales

Quick reference for approximate zoom level to scale at the equator.

  • 0
    • Resolution: 156543.03392800014
    • Scale: 5.91657527591555E8
  • 1
    • Resolution: 78271.51696399994
    • Scale: 2.95828763795777E8
@nikolaswise
nikolaswise / scale.md
Created April 24, 2015 20:16
Zoom level to Resolution and Scale at Equator for Web Mercator Aux Sphere
Zoom Level Resolution Scale
0 156543.03392800014 5.91657527591555E8
1 78271.51696399994 2.95828763795777E8
2 39135.75848200009 1.47914381897889E8
3 19567.87924099992 7.3957190948944E7
4 9783.93962049996 3.6978595474472E7
5 4891.96981024998 1.8489297737236E7
6 2445.98490512499 9244648.868618
7 1222.992452562495 4622324.434309
@nikolaswise
nikolaswise / zoning-overlays.md
Last active August 29, 2015 14:19
zoning overlay codes

Zoning Overlay Relationship

a b c d g h i j m r s
a ad ah
b
c cd
d da dc dg dj dm dr ds
g dg

i cant ype this

@nikolaswise
nikolaswise / markdown-it.js
Last active August 29, 2015 14:24
static-site markdown helper
var md = require('markdown-it')({
html: true,
linkify: true,
typographer: true,
quotes: '“”‘’'
})
.use(require('markdown-it-highlightjs'))
.use(require('markdown-it-footnote'))
.use(require('markdown-it-emoji'))
.use(require('markdown-it-container'), 'figure')
@nikolaswise
nikolaswise / release.sh
Created September 16, 2015 15:20
releae process
git branch -D temp-release-branch
git checkout -b temp-release-branch
grunt prepublish
git add -f dist/
git commit -m "Release"
git push upstream temp-release-branch
npm run gh-release
git checkout master
git branch -D temp-release-branch
git push upstream :temp-release-branch
@nikolaswise
nikolaswise / gameServer.json
Created April 15, 2016 18:15
joseki party game state
joseki-party: {
// name in url, generated on new game
ironrabbit-fancier: {
// Gets set when one player passes their turn. Reflects in the UI.
// Two passes end the game
pass: {
black: false,
white: false
}
// If a player resigns, this gets marked
@nikolaswise
nikolaswise / game.json
Created April 15, 2016 19:39
joseki party game server json
joseki-party: {
// name in url, generated on new game
ironrabbit-fancier: {
// Gets set when one player passes their turn. Reflects in the UI.
// Two passes end the game
pass: {
black: false,
white: false
}
// If a player resigns, this gets marked