Skip to content

Instantly share code, notes, and snippets.

View jmahabal's full-sized avatar

Jay Mahabal jmahabal

View GitHub Profile
jmahabal / .block
Last active October 18, 2016 05:56
Happy Pride
license: mit
height: 600
jmahabal / grancairo.jpg
Last active January 18, 2017 07:56
Frank Stella - Gran Cairo in d3.js
jmahabal / index.html
Last active January 18, 2017 17:29
Frank Stella - Marrakech in d3.js
<!Doctype HTML>
<!-- <script src="d3.js"></script> -->
<script src=""></script>
.triangle {
jmahabal /
Last active February 10, 2017 23:00
Visual explanation of the importance of examining your data before trying to predict / run an algorithm.

Visual explanation of the importance of examining your data before trying to predict / run an algorithm.

@JayMahabal / @H2Oai

Forked from 1wheel's block: you-draw-it

jmahabal / Data Cleaner.ipynb
Last active April 27, 2017 07:07
NBA Margin of Victory
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from sklearn.externals import joblib
import tweepy
import json
def predict(tweet_text):
# Load our model and vectorizer
clf = joblib.load('model.pkl')
vectorizer = joblib.load('vectorizer.pkl')
# Make the retweet count prediction after vectorizing the tweet
/* Setting things up. */
var path = require('path'),
express = require('express'),
app = express(),
Twit = require('twit'),
config = {
/* Be sure to update the .env file with your API keys. */
twitter: {
consumer_key: process.env.CONSUMER_KEY,
consumer_secret: process.env.CONSUMER_SECRET,
jmahabal / .block
Last active August 31, 2017 23:53
license: mit
jmahabal / .block
Last active September 23, 2017 21:01
It's been a good 17 years for Californians who kind-of-don't-really care about sports
license: mit
height: 1000
scrolling: no
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 30 columns, instead of 20. in line 7.
1,Alex Abrines\abrinal01,SG,24,OKC,15,0,17.1,1.6,4.0,.400,0.9,2.7,.341,0.7,1.3,.526,.517,0.5,0.6,.778,0.5,1.2,1.7,0.3,0.5,0.1,0.5,2.0,4.6
2,Quincy Acy\acyqu01,PF,27,BRK,13,0,18.1,1.5,4.6,.333,1.3,3.8,.347,0.2,0.8,.273,.475,0.9,1.2,.800,0.6,3.5,4.2,0.8,0.4,0.2,1.1,2.5,5.3
3,Steven Adams\adamsst01,C,24,OKC,12,12,31.0,5.3,8.1,.660,0.0,0.0,,5.3,8.1,.660,.660,1.9,2.7,.719,4.2,4.2,8.3,1.1,1.4,1.3,1.7,2.3,12.6
4,Bam Adebayo\adebaba01,C,20,MIA,10,3,12.3,1.3,2.6,.500,0.0,0.0,,1.3,2.6,.500,.500,0.9,1.3,.692,1.4,2.2,3.6,0.0,0.4,0.4,0.5,1.3,3.5
5,Arron Afflalo\afflaar01,SG,32,ORL,11,0,10.5,0.5,2.1,.261,0.2,1.1,.167,0.4,1.0,.364,.304,0.5,0.6,.714,0.1,1.5,1.6,0.8,0.1,0.1,0.3,0.6,1.7
6,Cole Aldrich\aldrico01,C,29,MIN,4,0,2.3,0.0,0.5,.000,0.0,0.0,,0.0,0.5,.000,.000,0.3,0.5,.500,0.0,0.3,0.3,0.3,0.3,0.0,0.0,0.5,0.3
7,LaMarcus Aldridge\aldrila01,PF,32,SAS,16,16,32.8,8.4,16.8,.502,0.6,1.6,.346,7.9,15.2,.519,.519,4.8,