Skip to content

Instantly share code, notes, and snippets.

Walter's Eurovision Explainer

TL;DR Eurovision is like European American Idol except 100% better and Australia is also there. Melodifestivalen is Sweden's national final to pick their song for Eurovision.

Eurovision

What is Eurovision?

From Wikipedia

Keybase proof

I hereby claim:

  • I am walterm on github.
  • I am walterm (https://keybase.io/walterm) on keybase.
  • I have a public key whose fingerprint is A173 863F 93DC 8F40 6F3D 5F54 7B3C 0B1E 98A7 E0B1

To claim this, I am signing this object:

@walterm
walterm / svg_barchart.js
Created July 10, 2014 05:11
SVG simple barchart
$(function(){
var data = [4, 8, 15, 16, 23, 42];
var width = 420,
barHeight = 20;
var x = d3.scale.linear()
.domain([0, d3.max(data)])
.range([0, width]);
@walterm
walterm / barchart.js
Created July 10, 2014 05:04
Simple barchart, with a linear scale
$(function(){
var data = [4, 8, 15, 16, 23, 42];
var x = d3.scale.linear()
.domain([0, d3.max(data)])
.range([0, 420]);
d3.select(".chart")
.selectAll("div")
.data(data)
.enter().append("div")
04:55:20 web.1 | started with pid 4434
04:55:20 web.1 | 2013-11-12 04:55:20 [4434] [INFO] Starting gunicorn 18.0
04:55:20 web.1 | 2013-11-12 04:55:20 [4434] [ERROR] Connection in use: ('0.0.0.0', 5000)
04:55:20 web.1 | 2013-11-12 04:55:20 [4434] [ERROR] Retrying in 1 second.
04:55:21 web.1 | 2013-11-12 04:55:21 [4434] [ERROR] Connection in use: ('0.0.0.0', 5000)
04:55:21 web.1 | 2013-11-12 04:55:21 [4434] [ERROR] Retrying in 1 second.
04:55:22 web.1 | 2013-11-12 04:55:22 [4434] [ERROR] Connection in use: ('0.0.0.0', 5000)
04:55:22 web.1 | 2013-11-12 04:55:22 [4434] [ERROR] Retrying in 1 second.
04:55:23 web.1 | 2013-11-12 04:55:23 [4434] [ERROR] Connection in use: ('0.0.0.0', 5000)
04:55:23 web.1 | 2013-11-12 04:55:23 [4434] [ERROR] Retrying in 1 second.
var interval = 6000;
var g = this.group;
var fall = true;
var callBack = function(){
return function(){
//Making it alternate between falling and going all the way back to the top instantaneously
if(fall){
//Falling
g.transition().duration(interval).ease('linear').attr('transform', 'translate(0,3000)');
function makeD3Post(post_url, avatar_url, note_count){
var D3Post = {
post: post_url,
avatar: avatar_url,
notes: note_count,
dimensions: {
'post': {
'width': 0,
'height': 0
},