Skip to content

Instantly share code, notes, and snippets.

View jmahabal's full-sized avatar
🌱

Jay Mahabal jmahabal

🌱
View GitHub Profile
@jmahabal
jmahabal / .block
Last active August 31, 2017 23:53
unconf
license: mit
/* 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,
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
@jmahabal
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.
@jmahabal
jmahabal / README.md
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
jmahabal / index.html
Last active January 18, 2017 17:29
Frank Stella - Marrakech in d3.js
<!Doctype HTML>
<head>
<!-- <script src="d3.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.1/d3.js"></script>
<style>
.triangle {
@jmahabal
jmahabal / grancairo.jpg
Last active January 18, 2017 07:56
Frank Stella - Gran Cairo in d3.js
grancairo.jpg
@jmahabal
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
border:
@jmahabal
jmahabal / .block
Last active October 18, 2016 05:56
Happy Pride
license: mit
height: 600