Skip to content

Instantly share code, notes, and snippets.

{
"cells": [
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
@raghothams
raghothams / ds-expenses.ipynb
Created June 1, 2015 15:38
expenses to csv convertor
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raghothams
raghothams / choropleth.py
Created April 21, 2015 07:59
choropleth viz with bokeh
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@raghothams
raghothams / ML-intro.ipynb
Created April 13, 2015 14:16
ML Intro - 14-11-2014
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raghothams
raghothams / networkx.ipynb
Created April 13, 2015 14:05
NetworkX python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@raghothams
raghothams / c3LineBar.js
Last active August 29, 2015 14:18
AngularJS directive for C3js line / bar chart
var c3Chart = angular.module('c3Chart', []);
c3Chart.directive('c3LineBar', [function () {
return{
restrict : 'A',
require : 'ngModel',
link: function (scope,elem,attrs,ngModel) {
scope.$watch(attrs.ngModel,function(){
render(scope[attrs.ngModel], elem);
});
@raghothams
raghothams / ScalaFuture.scala
Last active August 29, 2015 14:18
Trying out Futures in scala with callbacks
/**
* Created by init on 4/4/15.
*/
import scala.concurrent._
import ExecutionContext.Implicits.global
import scala.util.{Failure, Success}
// implicit execution context
import scala.io.Source

Keybase proof

I hereby claim:

  • I am raghothams on github.
  • I am raghothams (https://keybase.io/raghothams) on keybase.
  • I have a public key whose fingerprint is E17F 5F35 68EB 7C64 355B D3A5 0BE5 A85E 23C1 DB21

To claim this, I am signing this object:

@raghothams
raghothams / index.html
Last active August 29, 2015 14:14
D3 tween motion on path / link
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@raghothams
raghothams / index.html
Created January 22, 2015 13:34
D3 tree layout with arrow at end of path (source http://jsbin.com/gisaju)
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.node circle {
fill: #fff;
stroke: steelblue;