Skip to content

Instantly share code, notes, and snippets.

View ramnathv's full-sized avatar

Ramnath Vaidyanathan ramnathv

View GitHub Profile
@ramnathv
ramnathv / 0-react-hello-world.md
Created November 26, 2015 01:11 — forked from danawoodman/0-react-hello-world.md
React Hello World Examples
@ramnathv
ramnathv / store.js
Created November 24, 2015 03:13 — forked from barneycarroll/store.js
Little getter/setter for localStorage: store( 'name', 'barney' ); store( 'name' ) === 'barney'; store.delete( 'name' ); store.has( 'name' ) === false
// Get / setter for local storage
function store( key, value ){
if( arguments.length > 1 ){
localStorage.setItem( key, JSON.stringify( value ) )
return value
}
// Simultaneous getting / setting is bad.
// It is wasteful to continuously encode & then decompile JSON and never useful.
else {
@ramnathv
ramnathv / README.md
Last active November 21, 2015 18:06
Visualization Analysis and Design

Visualization Analysis and Design

Why have a human in the loop?

@ramnathv
ramnathv / README.md
Created November 13, 2015 23:46 — forked from pbeshai/README.md
Shooting Signatures

Shooting Signatures were designed to give an at-a-glance view of an NBA player's shooting performance. They were developed by Peter Beshai (@pbesh) as part of Buckets, an interactive NBA shot visualization tool.

Shooting Signature Explanation

Sample Shooting Signature usage

Shooting Signatures of NBA Players from the 2013-14 Season
#include <Rcpp.h>
using namespace Rcpp;
// For each row, find which column has the minimum value
// With ties, pick the first
// Result is indexed starting at 1
// [[Rcpp::export]]
IntegerVector whichmin_byrow(const NumericMatrix& x)
{
const int n = x.rows();
@ramnathv
ramnathv / README.md
Last active October 24, 2015 09:44
Scatterplot with D3Kit
@ramnathv
ramnathv / index.html
Last active October 23, 2015 18:05
Circular Grid Chart
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Circular Grid Chart - jsFiddle demo by ramnathv</title>
<script type="text/javascript" src="//coffeescript.org/extras/coffee-script.js"></script>
<script type='text/javascript' src="//d3js.org/d3.v3.min.js"></script>
<script type='text/javascript' src="//rawgit.com/gka/d3-jetpack/master/d3-jetpack.js"></script>
<script type='text/javascript' src="//rawgit.com/kristw/75b61f9beeab9b530612/raw/389e984e4041117a9185cf6edad9f6b85a38097a/d3kit.min.js"></script>
<script type='text/javascript' src="//rawgit.com/ramnathv/a5a3199538f86817ec1b/raw/f6627fc544e65d8e6186ba87556f743caa3f2730/visutils.js"></script>
@ramnathv
ramnathv / README.md
Created September 20, 2015 03:26
fresh block

hello markdown

@ramnathv
ramnathv / README.md
Last active December 30, 2015 10:40
NPR Viz Replication using ggplot2 and directlabels

Imgur