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 -->
Date Disability Insurance Life Insurance Retirement Grow their family Credit Card Emergency Fund Education Other Debt Buy a house Starting a Business Total Contribution
5/2017 20 93.39 399.32 0 457.00 0 0 500.49 0 0 1470.20
6/2017 20 93.39 399.32 2.13 449.65 1.98 0 500.49 0 0 1466.96
7/2017 20 93.39 399.32 374.95 732.78 349.76 0 500.49 0 0 2470.69
8/2017 20 93.39 399.32 378.27 726.36 352.86 0 500.49 0 0 2470.69
9/2017 20 93.39 399.32 380.85 721.37 355.27 0 500.49 0 0 2470.69
10/2017 20 93.39 598.97 1158.55 1318.55 1080.73 0 500.49 0 0 4770.69
11/2017 20 93.39 399.32 386.39 710.67 360.43 0 500.49 0 0 2470.69
12/2017 20 93.39 399.32 388.97 705.68 362.84 0 500.49 0 0 2470.69
1/2018 20 93.39 991.30 150.66 606.10 108.75 0 500.49 0 0 2470.69
@davo
davo / index.html
Last active May 4, 2017 04:06
#001 - Barcharts with DOM elements
<!DOCTYPE html>
<meta charset="utf-8">
<style>
@import 'style.css';
</style>
<body>
<header>
<h1>Barcharts with DOM</h1>
@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