Instantly share code, notes, and snippets.

# Rajiv Shahrajshah4

• Sort options
Last active Jan 10, 2016
This code, forked from Ed Küpfer, creates a shot chart. Building from the work of Asteves, this code rotates the court 90 degrees.
View ggplot.nba.halfcourt
 #Forked from Ed Küpfer and Asteves #https://gist.github.com/edkupfer #https://gist.github.com/asteves/7266330 #Updated to rotate half court 90 degrees #Generate Data for the 3 point line # Define the circle; add a point at the center if the 'pie slice' if the shape is to be filled circleFun <- function(center=c(0,5.25), diameter=20.9, npoints=20000, start=0, end=1, filled=TRUE){ tt <- seq(start*pi, end*pi, length.out=npoints)
Last active Dec 20, 2016
View App.js
 import 'babel-polyfill'; import React, {Component} from 'react'; import {render} from 'react-dom'; import DeckGL from 'deck.gl/react'; import {LineLayer} from 'deck.gl'; import {ArcLayer} from 'deck.gl'; import MapGL from 'react-map-gl'; const token = 'Add yours here';
Created Jan 17, 2017
View acrobot.py
 """classic Acrobot task""" ##Updated by Rajiv Shah to get the pendulum to balance for an extended time from gym import core, spaces from gym.utils import seeding import numpy as np from numpy import sin, cos, pi import time __copyright__ = "Copyright 2013, RLPy http://acl.mit.edu/RLPy" __credits__ = ["Alborz Geramifard", "Robert H. Klein", "Christoph Dann",
Last active Mar 4, 2018