Skip to content

Instantly share code, notes, and snippets.

View davo's full-sized avatar
🦮
Golden

Davo Galavotti davo

🦮
Golden
View GitHub Profile
## Domain Specific Languages in Coffee Script
# ## Title
# ## What's Domain Specific Languages
# ## Great Examples in Coffee Script:
#### Socket.io
@davo
davo / quick.coffee.md
Created August 29, 2017 05:30 — forked from joyrexus/quick.coffee.md
Quick coffee tips (fenced version for GH syntax highlighting)
@davo
davo / gist:5bae0e49affc117765c796f9c6b8eace
Created August 29, 2017 05:23 — forked from flipjs/gist:f3afa204a7530679eaf4
CoffeeScript Style Guide (using no prototype)
### flipjs.io CoffeeScript Style Guide ###
do ->
############################################################ CLASS ###
class Animal
constructor: (@name) ->
initProps = =>
# 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:
@davo
davo / .block
Created May 31, 2017 22:02 — forked from mbostock/.block
Zoomable Circle Packing
license: gpl-3.0
height: 960
@davo
davo / encoding-video.md
Created May 11, 2017 23:04 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc --with-opus
@davo
davo / index.html
Last active May 9, 2017 17:58 — forked from d3noob/.block
Simple bar graph in v4
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
.bar { fill: steelblue; }
</style>
<body>
<!-- load the d3.js library -->
@davo
davo / data-alt.csv
Last active January 20, 2017 22:49 — forked from d3noob/.block
Update and revert graph data
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
@davo
davo / Readme.md
Last active June 8, 2019 01:27 — forked from wiederkehr/Readme.md
Multiples Streamgraph

Example of a streamgraph that can be divided into multiple area charts.

@davo
davo / Readme.md
Created December 15, 2016 22:52 — forked from wiederkehr/Readme.md
Multiples Barchart

Example of a stacked bar chart that can be divided into multiples. All credits for this go to Mike Bostock.