Skip to content

Instantly share code, notes, and snippets.

View kevinschaul's full-sized avatar

Kevin Schaul kevinschaul

View GitHub Profile
@kevinschaul
kevinschaul / admin3-4-maritime.json
Created January 20, 2023 17:37
Style showing openmaptiles maritime boundary bug
{
"version": 8,
"name": "OSM Liberty",
"metadata": {
"maputnik:license": "https://github.com/maputnik/osm-liberty/blob/gh-pages/LICENSE.md",
"maputnik:renderer": "mbgljs",
"openmaptiles:version": "3.x"
},
"sources": {
"natural_earth_shaded_relief": {
@kevinschaul
kevinschaul / with-center-fix.html
Created August 20, 2019 20:56
ai2html: Demonstrating the max_width + center_html_output issue
<!-- Generated by ai2html v0.92.0 - 2019-08-20 16:50 -->
<!-- ai file: ai2html-center-max-width-test.ai -->
<style type='text/css' media='screen,print'>
#g-ai2html-center-max-width-test-box {
max-width:600px;
}
#g-ai2html-center-max-width-test-box,
#g-ai2html-center-max-width-test-box .g-artboard {
margin:0 auto;
@kevinschaul
kevinschaul / r-cheat-sheet.md
Last active August 18, 2022 20:46
R stats cheat sheet

Keybase proof

I hereby claim:

  • I am kevinschaul on github.
  • I am kevinschaul (https://keybase.io/kevinschaul) on keybase.
  • I have a public key ASDOi7sdTrrF_t3j89K6nVmFILHFRdvNXYiqim4gKZE7Zwo

To claim this, I am signing this object:

@kevinschaul
kevinschaul / flattenIn2csv.py
Created December 1, 2015 22:01
Convert a .json file into a CSV file, flattening any embedded objects and arrays
#!/usr/bin/evn python
import csv
import json
import sys
from sets import Set
def main():
"""
@kevinschaul
kevinschaul / scope.py
Last active August 29, 2015 14:24
Python scope probs
my_map = {}
crazier_tho = {}
def main():
my_map = {
'hello': 'hi'
}
print my_map
printMyMap()
@kevinschaul
kevinschaul / Makefile
Last active August 29, 2015 13:58
Ukraine's language divide
GENERATED_FILES = \
build/ne_10m_admin_1_states_provinces.shp \
build/ne_10m_admin_0_countries.shp \
public/ukraine.json
LIBRARY_FILES = \
public/lib/d3.v3.min.js \
public/lib/topojson.v1.min.js \
BOUNDS = 19.0 43.2 42.3 53.3
@kevinschaul
kevinschaul / index.html
Last active August 29, 2015 13:56
Multiple instances of rangeslider.js (bug)
<link rel="stylesheet" href="http://andreruffert.github.io/rangeslider.js/bower_components/rangeslider.js/dist/rangeslider.css">
<script type='text/javascript' src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type='text/javascript' src="http://andreruffert.github.io/rangeslider.js/bower_components/rangeslider.js/dist/rangeslider.min.js"></script>
<br />
<input id='range-0' type="range" min="10" max="1000" step="10" value="300">
<br />
<br />
<input id='range-1' type="range" min="10" max="1000" step="10" value="300">
@kevinschaul
kevinschaul / README.md
Last active August 29, 2015 13:56
Interaction for star plots in d3