Skip to content

Instantly share code, notes, and snippets.

View joshy's full-sized avatar

Joshy Cyriac joshy

  • Universitätsspital Basel
  • Basel
View GitHub Profile
@joshy
joshy / urban-population-of-switzerland.csv
Created August 18, 2015 12:39
Urban population of Switzerland from 1991 - 2013 in 1'000. Source http://www.bfs.admin.ch/xmlns/opendata/je-e-01.02.01.01.03.ods
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 25 columns, instead of 15 in line 4.
Agglomeration,Number of communes,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013
Aarau ,17 ,76.5 ,76.7 ,77.6 ,77.7 ,78.1 ,78.2 ,78.2 ,78.3 ,78.7 ,79.1 ,79.7 ,80.3 ,81.0 ,81.8 ,82.3 ,83.1 ,83.8 ,85.1 ,86.4 ,88.0 ,89.3 ,90.7 ,91.7
Amriswil-Romanshorn ,5 ,22.6 ,22.9 ,23.3 ,23.6 ,24.0 ,24.0 ,24.2 ,24.0 ,24.0 ,24.1 ,24.0 ,24.2 ,24.4 ,24.6 ,24.7 ,24.8 ,25.0 ,25.4 ,25.8 ,26.3 ,26.8 ,27.3 ,27.7
Arbon-Rorschach ,11 ,54.6 ,54.9 ,55.3 ,55.6 ,55.7 ,55.7 ,55.6 ,56.0 ,56.0 ,56.1 ,56.2 ,56.4 ,56.6 ,56.7 ,56.7 ,57.0 ,57.8 ,58.5 ,59.0 ,59.4 ,59.7 ,60.1 ,60.6
Baden-Brugg ,22 ,100.9 ,101.6 ,102.5 ,102.8 ,103.5 ,103.7 ,103.8 ,104.2 ,104.8 ,105.7 ,107.3 ,108.2 ,
@joshy
joshy / index.html
Last active August 31, 2015 06:52
Urban population of Switzerland
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Loading CSV Data with D3</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
</head>
<body>
<svg width="250" height="100">
@joshy
joshy / index.html
Created September 5, 2015 09:35
Urban population of Switzerland
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Urban population of Switzerland</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body { font-family: Sans-Serif; background-color: white; }
@joshy
joshy / index.html
Last active September 14, 2015 20:15
module4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Urban population of Switzerland</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
font-family: Sans-Serif;
@joshy
joshy / pwdx-nodejs.sh
Last active September 16, 2015 08:04
Print working directory of nodejs apps
pwdx `ps -ef | grep nodejs | awk {'print$2'}`
@joshy
joshy / index.html
Last active September 19, 2015 19:58
Module 5 - Scatterplot
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Urban population of Switzerland</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
font-family: Sans-Serif;
@joshy
joshy / index.html
Created September 27, 2015 20:46
Module 6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Urban population of Switzerland 1993 - 2013</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
font-family: Sans-Serif;
"""Statements
1. Albert and Bernard just became friends with Cheryl, and they want to know when her birtxhday is. Cheryl gave them a list of 10 possible dates:
May 15 May 16 May 19
June 17 June 18
July 14 July 16
August 14 August 15 August 17
2. Cheryl then tells Albert and Bernard separately the month and the day of the birthday respectively.
@joshy
joshy / install.md
Last active January 3, 2017 15:24
Installing oracle client on mac for use with python
  • Oracle instant client installation Get instant client from here http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
    • Basic client
    • SDK client
  • Unzip both and put into same directory
  • Put the directory into the PATH variable
  • Create links
    • libclntsh.dylib -> libclntsh.dylib.12.1
    • libocci.dylib -> libocci.dylib.12.1
  • pip install
{"data":[{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"patient_id":"None","study_id":"","series_id":"","accession_number":"","series_number":""},{"p