Skip to content

Instantly share code, notes, and snippets.

https://www.cs.swarthmore.edu/~turnbull/cs67/s09/labs/lab05.pdf
http://nxn.se/post/90198924975/extract-cluster-elements-by-color-in-python
https://joernhees.de/blog/2015/08/26/scipy-hierarchical-clustering-and-dendrogram-tutorial/
http://databasefaq.com/index.php/answer/205523/python-scipy-hierarchical-clustering-dendrogram-cutting-scipy-hierarchical-dendrogram-into-clusters-via-a-threshold-value
http://brandonrose.org/clustering
@geraldstanje
geraldstanje / gist:e2f6f3c35103460629fae54a5cc97109
Last active May 13, 2016 18:24
hex binning with Leaflet.js
http://jsfiddle.net/ts4oyyn0/10/
cc http://coagisweb.cabq.gov/arcgis/rest/services/public/environmentalissues/MapServer/1/query&#8221
http://bl.ocks.org/wboykinm/29ef7eda9e28932353fd
http://stackoverflow.com/questions/35468510/binning-data-into-a-hexagonal-grid-in-google-maps
http://stackoverflow.com/questions/19830527/using-d3-to-create-a-density-value-heatmap-layer-for-leaflet
python:
@geraldstanje
geraldstanje / rand_location.js
Last active April 14, 2017 05:39
generate random location (lat, long)
function getRandomCoordinates(radius, uniform) {
// Generate two random numbers
var a = Math.random(),
b = Math.random();
// Flip for more uniformity.
if (uniform) {
if (b < a) {
var c = b;
b = a;
%html{:lang => "en", "ng-app" => "myApp"}
%head
%script{:src => "http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"}
%script{:src => "https://maps.googleapis.com/maps/api/js?v=3.6&?key=AIzaSyAkyvfxLRt8uJ3gZlduH38ZQSF30_5N9cA&sensor=true"}
%script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"}
%meta{:charset => "utf-8"}/
%title My AngularJS App
%body
.container-fluid
.row
https://www.shadertoy.com/view/XdsXRf
https://www.shadertoy.com/view/4s2SRt
http://stackoverflow.com/questions/18353107/radar-scanner-effect-using-jquery
http://jsbin.com/AMag/6/edit?html,css,js,console,output
https://github.com/lucasfilippi/d3-radar
http://codepen.io/jackrugile/pen/wqLsn
view-source:http://lab.hakim.se/radar/
http://stackoverflow.com/questions/18353107/radar-scanner-effect-using-jquery
https://github.com/shineforyou/PlaneRadar
view-source:http://s.codepen.io/jackrugile/fullpage/wqLsn?
@geraldstanje
geraldstanje / gist:50ba6ce5fa872fb51b9a
Last active March 12, 2016 23:08
webgl tutorials
http://www.merixstudio.com/blog/webgl-hype-future-digital-interactive/
http://jsfiddle.net/ksRyQ/?utm_source=website&utm_medium=embed&utm_campaign=ksRyQ
https://aerotwist.com/tutorials/getting-started-with-three-js/
https://webglfundamentals.org/
@geraldstanje
geraldstanje / gist:6d51cbb84702bff4bb06
Last active January 18, 2016 12:30
get the max memory usage of an app
# start the app:
while true; do ./main; sleep 0.1; done;
# monitor:
max=0;
for i in {1..200};
do
x=`ps aux | grep -m1 main | awk '{print $6}'`;
if [ $x -gt $max ]; then
max=$x;
http://www.jonathanbeard.io/tutorials/FlexBisonC++
https://github.com/melihovv/JsonParser/tree/master/JsonParser
https://github.com/51103220/Assembly-Parser
@geraldstanje
geraldstanje / gist:885782cc3f6570637ca9
Last active October 23, 2015 19:36
C++ performance tutorials / talks
http://people.cs.clemson.edu/~dhouse/courses/405/papers/optimize.pdf
Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures":
https://www.youtube.com/watch?v=fHNmRkzxHWs
Scott Meyers - The evolving search for effective C++ - Keynote @ Meeting C++ 2014:
https://www.youtube.com/watch?v=smqT9Io_bKo
Writing Quick Code in C++, Quickly:
https://www.youtube.com/watch?v=MvFj8qo1iuA
@geraldstanje
geraldstanje / gist:c0782002c1f959aacec8
Created August 4, 2015 14:38
go 1.5 cross compilation
https://medium.com/@rakyll/go-1-5-cross-compilation-488092ba44ec