Skip to content

Instantly share code, notes, and snippets.

View aaizemberg's full-sized avatar

Ariel Aizemberg aaizemberg

View GitHub Profile
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:55
SVG Diagonal Path
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset=utf-8 />
<title>diagonal path</title>
<style>
svg { background-color: beige; }
path { fill: none; }
@aaizemberg
aaizemberg / index.html
Created February 17, 2014 03:13
vector --> "html table" using d3.js
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>tablas desde d3.js</title>
<style>
table, td, th {
border:1px solid green;
@aaizemberg
aaizemberg / index.html
Created February 17, 2014 03:38
data matrix --> "html table" using d3.js
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>tablas desde d3.js</title>
<style>
table,td{border:1px solid green;border-collapse: collapse;}
td{padding: 8px;}
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:56
D3.js: force layout (con 300 ejes)
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="300 ejes" />
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>D3: Force layout (300 ejes)</title>
</head>
<body>
<script type="text/javascript">
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:56
CAWS (leafletjs con maptiles de OSM)
<!DOCTYPE html>
<html>
<head>
<title>Club Argentino de WUSHU</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://leafletjs.com/dist/leaflet.css" />
</head>
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:57
D3: Force layout (con 300 nodos y 6726 ejes)
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="300 ejes" />
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>D3: Force layout (con 300 nodos y 6726 ejes)</title>
</head>
<body>
<script type="text/javascript">
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:57
OpenLayers (v3) & OSM
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="http://ol3js.org/en/master/css/ol.css" type="text/css">
<style>
.map {
height: 600px;
width: 100%;
}
</style>
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:57
world colormap (using ol3js)
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://ol3js.org/en/master/css/ol.css" type="text/css">
<style>
.map {
height: 600px;
width: 100%;
}
</style>
@aaizemberg
aaizemberg / Read SPSS -> Write CSV
Last active August 29, 2015 13:57
1. read spss --> 2. export csv
## cargando la librería 'foreign' que tiene el 'read.spss'
library(foreign)
## cambiando el directorio
setwd("<path a los archivos .sav>")
## leyendo los archivos .sav
ind = read.spss("individual_t213.sav")
hog = read.spss("hogar_t213.sav")
@aaizemberg
aaizemberg / index.html
Last active August 29, 2015 13:58
probando CartoDB y MapBox (iframe)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>rectangulos en tematizados en CartoDB y MapBox</title>
</head>
<body>
<!-- probando con iframe's -->