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
gruntNow open index.html in a web browser, and look in the console.
| <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 | |
| #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 |
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
gruntNow open index.html in a web browser, and look in the console.
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
gruntNow open index.html in a web browser, and look in the console.
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
gruntNow open index.html in a web browser, and look in the console.
| { | |
| "directory": "lib", | |
| "json": "bower.json" | |
| } |
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 |