Skip to content

Instantly share code, notes, and snippets.

View nelsonallende's full-sized avatar

nelsonallende

View GitHub Profile
Japan 83.7
Switzerland 83.4
Singapore 83.1
Australia 82.8
Spain 82.8
Iceland 82.7
Italy 82.7
Israel 82.5
France 82.4
Country Life_expectancy_at_birth
Japan 83.7
Switzerland 83.4
Singapore 83.1
Australia 82.8
Spain 82.8
Iceland 82.7
Italy 82.7
Israel 82.5
France 82.4
@nelsonallende
nelsonallende / index.html
Last active April 21, 2017 16:08
E04/E05
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The life of Me</title>
<style>
body {
font: 10px sans-serif;
}
@nelsonallende
nelsonallende / d3.html
Last active April 10, 2017 13:32
Ex03
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
</head>
<body style="margin: 30px" height="100%" >
<script>
var dataArray = [5,11,18];
splitrows col: column1 on: '\n' quote: '\"'
split col: column1 on: ',' limit: 9 quote: '\"'
replace col: * with: '' on: '\"' global: true
header
set col: First_Name value: proper($col)
delete row: ismissing([Index])
replace col: Small_Shirt_Size with: 'S' on: `X` global: true
replace col: Medium_Shirt_Size with: 'M' on: `X` global: true
replace col: Large_Shirt_Size with: 'L' on: `X` global: true
merge col: Small_Shirt_Size,Medium_Shirt_Size,Large_Shirt_Size with: '' as: 'Shirt_Size'