In which we list tips, tricks, and reminders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Domain Specific Languages in Coffee Script | |
| # ## Title | |
| # ## What's Domain Specific Languages | |
| # ## Great Examples in Coffee Script: | |
| #### Socket.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### flipjs.io CoffeeScript Style Guide ### | |
| do -> | |
| ############################################################ CLASS ### | |
| class Animal | |
| constructor: (@name) -> | |
| initProps = => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # These are my notes from the PragProg book on CoffeeScript of things that either | |
| # aren't in the main CS language reference or I didn't pick them up there. I wrote | |
| # them down before I forgot, and put it here for others but mainly as a reference for | |
| # myself. | |
| # assign arguments in constructor to properties of the same name: | |
| class Thingie | |
| constructor: (@name, @url) -> | |
| # is the same as: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: gpl-3.0 | |
| height: 960 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> /* set the CSS */ | |
| .bar { fill: steelblue; } | |
| </style> | |
| <body> | |
| <!-- load the d3.js library --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| date | close | |
|---|---|---|
| 13-May-12 | 109 | |
| 12-May-12 | 102 | |
| 11-May-12 | 100 | |
| 10-May-12 | 99.55 | |
| 8-May-12 | 76.86 | |
| 6-May-12 | 67.62 | |
| 4-May-12 | 64.48 | |
| 2-May-12 | 60.98 | |
| 1-May-12 | 58.13 |
Example of a streamgraph that can be divided into multiple area charts.
Example of a stacked bar chart that can be divided into multiples. All credits for this go to Mike Bostock.