Skip to content

Instantly share code, notes, and snippets.

View mchelen's full-sized avatar

Mike Chelen (he/him) mchelen

View GitHub Profile
<script src="http://github.com/jeresig/processing-js/raw/master/processing.min.js" type="text/javascript"></script>
<script src="http://github.com/jeresig/processing-js/raw/master/examples/init.js" type="text/javascript"></script>
<script type="text/javascript">
Array.max = function( array ) {
return Math.max.apply( Math, array );
};
Array.min = function( array ){
return Math.min.apply( Math, array );
};
</script>
<!DOCTYPE html>
<html>
<head>
<script src="http://github.com/jeresig/processing-js/raw/master/processing.min.js"></script>
<script src="http://github.com/jeresig/processing-js/raw/master/examples/init.js"></script>
<script type="text/javascript">
Array.max = function( array ){
return Math.max.apply( Math, array );
};
<style type="text/css" media="screen">
table {
font-size: x-small;
font-family: sans-serif;
}
</style>
<?php
@mchelen
mchelen / gnuplot.gnu
Last active August 12, 2017 01:23 — forked from Noktec/gnuplot.gnu
#Use the testping.sh script to retrieve the times of a Pings
#Then use the following script to plot it with gnuplot
set terminal pdfcairo font "Gill Sans,9" linewidth 2 rounded fontscale 1.0
set output "ping.pdf"
set ylabel "Time in milliseconds"
set xlabel "Number of Pings"
plot "pingTimes.dat" w lp
@mchelen
mchelen / README.md
Last active August 29, 2015 14:09 — forked from mchelen/.gitignore
browserify-shim

This is an example of using Grunt to run Browserify to create minified client-side Javascript that uses jQuery.

To use the example, checkout & cd into the repo, then:

npm install
grunt

Now open index.html in a web browser, and look in the console.

@mchelen
mchelen / README.md
Last active August 29, 2015 14:09 — forked from mchelen/ README.md

This is an example of using Grunt to run Browserify to create minified client-side Javascript that uses jQuery.

To use the example, checkout & cd into the repo, then:

npm install
grunt

Now open index.html in a web browser, and look in the console.

@mchelen
mchelen / README.md
Last active August 29, 2015 14:09 — forked from mchelen/ README.md

This is an example of using Grunt to run Browserify to create minified client-side Javascript that uses jQuery.

To use the example, checkout & cd into the repo, then:

npm install
grunt

Now open index.html in a web browser, and look in the console.

@mchelen
mchelen / .bowerrc
Last active August 29, 2015 14:09 — forked from curiouslychase/.bowerrc
bower + grunt
{
"directory": "lib",
"json": "bower.json"
}
@mchelen
mchelen / README.md
Last active August 29, 2015 14:15 — forked from mbostock/.block

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

<?php
/*
expected output:
Weekend
Something
actual output:
Weekend
Something
Weekend