Skip to content

Instantly share code, notes, and snippets.

Skip to content
Search or jump to…
Pull requests
Issues
Marketplace
Explore
@andest01
troutspotr
@andest01
andest01 / throttleReduce.js
Created April 19, 2017 16:05
throttleReduce
async function throttleReduce(ops) {
let resolvedResults = []
for (let i = 0; i < ops.length; i++) {
let op = ops[i]
let result = await waitForNext(op.bind(null, i))
resolvedResults.push(result)
}
return resolvedResults
}
license: mit
@andest01
andest01 / TroutSpotr-CLA-v1
Created March 10, 2017 18:41
TroutSpotr CLA
Thank you for your interest in TroutSpotr! This agreement helps us achieve our goal of collaborative open source software development. In order to clarify the intellectual property license granted with Contributions from any person or entity, TroutSpotr must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, agreeing to the license terms below.
This license is for your protection as a Contributor as well as the protection of TroutSpotr. Contributors retain full rights to use their original Contributions for any other purpose outside of TroutSpotr while also providing TroutSpotr the right to distribute and build upon their work.
This license is intended to be compatible with other open source licenses, specifically with version three of the GPL in order to remain true to the original goals of TroutSpotr of supportive collaboration.
Definitions:
The following terms are used throughout this agreement:
@andest01
andest01 / index.html
Created November 21, 2015 01:35
960x960
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background-color: gray;
}
</style>
<body>
<canvas width="960" height="500"></canvas>
<script>
#!/bin/bash
# Convert Shapefile (.shp) to TopoJSON, version 1
# @see http://bost.ocks.org/mike/map/
# Before running this script:
#
# brew install gdal
# npm install -g topojson
# which ogr2ogr
# which topojson