Skip to content

Instantly share code, notes, and snippets.

View ROODAY's full-sized avatar
🕺
Probably Dancing

Rudhra Raveendran ROODAY

🕺
Probably Dancing
View GitHub Profile
@ROODAY
ROODAY / animate.py
Last active February 22, 2022 11:47
Render VideoPose animation
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import subprocess as sp
import os
import errno
from common.arguments import parse_args
from common.camera import *
[
{"city": "Toronto, ON, Canada", "lat": "43.653226","lng": "-79.3831843"}
,{"city": "Montreal, QC, Canada", "lat": "45.5086699","lng": "-73.55399249999999"}
,{"city": "Vancouver, BC, Canada", "lat": "49.261226","lng": "-123.1139268"}
,{"city": "Ottawa, ON, Canada", "lat": "45.4215296","lng": "-75.69719309999999"}
,{"city": "Edmonton, AB, Canada", "lat": "53.543564","lng": "-113.490452"}
,{"city": "Calgary, AB, Canada", "lat": "51.04499999999999","lng": "-114.0572222"}
,{"city": "Quebec, Canada", "lat": "52.9399159","lng": "-73.5491361"}
,{"city": "Winnipeg, MB, Canada", "lat": "49.8997541","lng": "-97.1374937"}
,{"city": "Hamilton, ON, Canada", "lat": "43.243603","lng": "-79.889075"}
@ROODAY
ROODAY / CapitalCoords.json
Created October 15, 2017 14:18
JSON of US Capital Cities and Coords
{
"AL": {
"name": "Alabama",
"capital": "Montgomery",
"lat": "32.361538",
"long": "-86.279118"
},
"AK": {
"name": "Alaska",
"capital": "Juneau",
@ROODAY
ROODAY / rps.py
Created September 21, 2017 06:08
Rock Paper Scissors implemented in Python.
import random
running = True
print("Let's play rock paper scissors!")
options = ["Rock", "Paper", "Scissors"]
while (running):
playerChoice = int(input("Pick rock (0), paper (1), or scissors (2): "))
computerChoice = random.randint(0,2)

Keybase proof

I hereby claim:

  • I am rooday on github.
  • I am rooday (https://keybase.io/rooday) on keybase.
  • I have a public key ASCJGTB9j8d542bVsUp9RjFd3K4VniOWd7HEQKS14Eggmgo

To claim this, I am signing this object:

@ROODAY
ROODAY / d3-cloud-test.js
Last active December 13, 2015 16:06
Attempting to use the d3-cloud package for node.js
var login = require("facebook-chat-api");
var Canvas = require("canvas");
var cloud = require("d3-cloud")
Array.prototype.clean = function(deleteValue) {
for (var i = 0; i < this.length; i++) {
if (this[i] == deleteValue) {
this.splice(i, 1);
i--;
}
@ROODAY
ROODAY / leastsquaresregression.py
Last active August 29, 2015 14:01
Takes inputs as X's and Y's from points and calculates least squares regression equation
entering = True
xCount = 0
yCount = 0
avgX = 0
avgY = 0
sqr = 0
mid = 0
avgResidual = 0
noresidualCount = 0
regressionX = []
@ROODAY
ROODAY / intrexon.py
Last active August 29, 2015 14:01
IntreXon Prototype
fileToRead = input("Type in the name of the data file: ")
dataFile = "data/" + str(fileToRead)
totalExons = int(input("Type in the total number of exons: "))
totalIntrons = int(input("Type in the total number of introns: "))
exonNumber = 0
intronNumber = 0
exon = chr(58)
intron = chr(45)
print(dataFile + " will be used. Total number of exons is " + str(totalExons) + ", total number of introns is " + str(totalIntrons) +".")