Skip to content

Instantly share code, notes, and snippets.

View timarnold's full-sized avatar

Tim Arnold timarnold

View GitHub Profile
#!/usr/bin/env python
import math
import rospy
from std_msgs.msg import Float64
from sensor_msgs.msg import JointState
from simple_arm.srv import *
def at_goal(pos_j1, goal_j1, pos_j2, goal_j2):
tolerance = .05
#!/usr/bin/env python
import math
import rospy
from sensor_msgs.msg import Image, JointState
from simple_arm.srv import *
class LookAway(object):
def __init__(self):
import requests
import json
from html.parser import HTMLParser
from lxml import html, etree
from datetime import timedelta, date
URL_BASE = "https://archive.org/wayback/available?url=https://www.health.pa.gov/topics/disease/coronavirus/Pages/Cases.aspx&timestamp="
COUNTIES = [
"Adams",
"Allegheny",
import pandas as pd
import matplotlib.pyplot as plt
import pylab as plot
import numpy as np
# Graph appearance parameters
params = {
'legend.fontsize': 20,
'legend.handlelength': 2,
'axes.titlesize': 24,
import pandas as pd
import matplotlib.pyplot as plt
import pylab as plot
import numpy as np
from scipy.optimize import curve_fit
def func(x, a, b):
return a * np.power(b, x)
# Graph
import pandas as pd
import matplotlib.pyplot as plt
import pylab as plot
import numpy as np
from scipy.optimize import curve_fit
def func(x, a, b):
return a * np.power(b, x)
def logistic(x, L, k, x0):