Skip to content

Instantly share code, notes, and snippets.

View samescolas's full-sized avatar

Sam Escolas samescolas

  • Boston
View GitHub Profile
###
import sys, requests
requests.get("https://api.robinhood.com/quotes/" + sys.argv[1] + "/")
###
import sys, json
t time
fig = plt.figure()
ax1 = fig.add_subplot(1, 1, 1)
ax1.axis([0,100,130,150])
def animate(i):
getData = open("data.txt", "r").read()
arr = getData.split('\n')
xar = []
@samescolas
samescolas / calc.c
Created May 20, 2017 16:11
rpn_calculator for exam
#include "rpn_calc.h"
int is_op(char *str)
{
if (*str == '+' || *str == '-' || *str == '/' || *str == '*' || *str == '%')
{
if (*(str + 1) && *(str + 1) != ' ')
return (0);
else
return (1);