Skip to content

Instantly share code, notes, and snippets.

@oertz
oertz / ajax_0
Last active March 21, 2017 16:53
DFA - AJAX starting file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Learning AJAX by examples</title>
<!-- Add here the link to Bootstrap -->
@oertz
oertz / index.html
Last active March 14, 2017 17:27
Basics of DOM API by examples
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Basics of DOM API by examples</title>
<!-- Add here the link to Bootstrap -->
@oertz
oertz / BikeInFrenchCities-Data.csv
Created August 25, 2015 15:08
Exercise 2 - Bike in french cities
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 18 columns, instead of 12. in line 9.
Ville,Aménagements cyclables (kms),Voirie aménagée (%),Pistes cyclables (kms),Contre-sens cyclable (kms),Couloir bus ouverts au vélos (kms),Tourne à droite sur feu rouge ou cedez-le passage cycliste,Sas à vélo (oui=1/non=0),Stations,Vélos,Vélo en libre service (oui=1/non=0),Véloparcs ou parking sécurisés,Places,Arceaux,Vélo école (oui=1/non=0),Vélo de fonction ou VAE (oui=1/non=0),Vélo dans les transports (oui=1/non=0),Part modale
Aix-en-Provence (ville),68,9,12.2,13.2,23,0,0,0,0,0,0,0,0,1,0,0,2
Amiens (metro),100,11,-999,-999,-999,0,1,26,230,1,1,38,800,1,1,0,1.9
Bordeaux (ville),150,28,41,42,18,90,1,99,1545,1,17,882,5200,1,1,1,6.5
Brest (agglo),72.5,6.7,21.4,3,7,0,1,0,0,0,4,160,1900,0,0,1,-999
Dijon (agglo),140,22.7,59.8,8,14,0,1,40,400,1,1,176,2400,1,1,0,3
Dunkerque (agglo),170,28,51,13.6,6,10,0,0,0,0,0,0,450,0,1,0,-999
Grenoble (agglo),310,25,150,47,12,200,1,2,3500,1,2,500,11500,0,0,1,3
La Rochelle (agglo),231.4,17.3,92.8,8.4,6.5,38,1,54,350,1,6,180,2160,1,1,1,8
Le Havre (ville),80,13,23,1.4,0,50,1,0,0,0,6
@oertz
oertz / MeteoClimatoHydroDisastersInFrance-Data.csv
Created August 25, 2015 10:06
Natural disasters in France (1926-2014)
year disaster type disaster subtype occurrence total deaths affected injured homeless total affected total damage
1926 Landslide Landslide 1 28 0 0 0 0 0
1930 Landslide Landslide 1 40 0 0 0 0 0
1932 Landslide Landslide 1 30 0 0 0 0 0
1949 Wildfire Wildfire 1 80 0 0 0 0 0
1958 Flood Riverine flood 1 35 0 0 0 0 0
1961 Landslide Landslide 1 21 0 0 0 0 0
1967 Storm Convective storm 1 5 0 0 0 0 20000
1969 Storm Storm 1 23 0 0 0 0 0
1970 Landslide Avalanche 1 72 0 0 0 0 0
@oertz
oertz / BikeInFrenchCities-Data.csv
Last active August 29, 2015 14:28
Amenagements cyclables et vélos en libre service dans les grandes villes françaises
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 18 columns, instead of 12. in line 9.
Ville,Aménagements cyclables (kms),Voirie aménagée (%),Pistes cyclables (kms),Contre-sens cyclable (kms),Couloir bus ouverts au vélos (kms),Tourne à droite sur feu rouge ou cedez-le passage cycliste,Sas à vélo (oui=1/non=0),Stations,Vélos,Vélo en libre service (oui=1/non=0),Véloparcs ou parking sécurisés,Places,Arceaux,Vélo école (oui=1/non=0),Vélo de fonction ou VAE (oui=1/non=0),Vélo dans les transports (oui=1/non=0),Part modale
Aix-en-Provence (ville),68,9,12.2,13.2,23,0,0,0,0,0,0,0,0,1,0,0,2
Amiens (metro),100,11,-999,-999,-999,0,1,26,230,1,1,38,800,1,1,0,1.9
Bordeaux (ville),150,28,41,42,18,90,1,99,1545,1,17,882,5200,1,1,1,6.5
Brest (agglo),72.5,6.7,21.4,3,7,0,1,0,0,0,4,160,1900,0,0,1,-999
Dijon (agglo),140,22.7,59.8,8,14,0,1,40,400,1,1,176,2400,1,1,0,3
Dunkerque (agglo),170,28,51,13.6,6,10,0,0,0,0,0,0,450,0,1,0,-999
Grenoble (agglo),310,25,150,47,12,200,1,2,3500,1,2,500,11500,0,0,1,3
La Rochelle (agglo),231.4,17.3,92.8,8.4,6.5,38,1,54,350,1,6,180,2160,1,1,1,8
Le Havre (ville),80,13,23,1.4,0,50,1,0,0,0,6