Skip to content

Instantly share code, notes, and snippets.

View nikolaswise's full-sized avatar
🌵

Nikolas Wise nikolaswise

🌵
View GitHub Profile

i cant ype this

@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
@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 / 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 / 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 / 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 / sample-graphs-and-data.html
Created April 13, 2015 18:50
sample line graphs with angular dimple
[
{
"x": 0,
"y": 12,
"for": "Foo"
},
{
"x": 1,
"y": 24,
"for": "Foo"
@nikolaswise
nikolaswise / md5.js
Created April 10, 2015 15:00
Joseph Myer's md5 hash implementatio
function md5cycle(x, k) {
var a = x[0], b = x[1], c = x[2], d = x[3];
a = ff(a, b, c, d, k[0], 7, -680876936);
d = ff(d, a, b, c, k[1], 12, -389564586);
c = ff(c, d, a, b, k[2], 17, 606105819);
b = ff(b, c, d, a, k[3], 22, -1044525330);
a = ff(a, b, c, d, k[4], 7, -176418897);
d = ff(d, a, b, c, k[5], 12, 1200080426);
c = ff(c, d, a, b, k[6], 17, -1473231341);
@nikolaswise
nikolaswise / sample.html
Created August 28, 2014 00:15
leaflet map container
<html>
<head>
</head>
<body>
<div id="map"></div>
</body>
</html>
body, html {
@nikolaswise
nikolaswise / world-cup.md
Last active August 29, 2015 14:02
2014 World Cup Schedule

World Cup Brazil

All times in PST.

Thursday, June 12

  • 13:00 Brazil vs. Croatia (ESPN)

Friday, June 13

  • 9:00 Mexico vs. Cameroon (ESPN2)
  • 12:00 Spain vs. Netherlands (ESPN)
  • 15:00 Chile vs. Australia (ESPN2)