This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Moved to https://github.com/z1lc/core/tree/master/src/main/python/productivity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| def getTeam(team): | |
| request = requests.get('https://nba-players.herokuapp.com/players-stats-teams/' + team) | |
| if request.status_code == 200: | |
| return request.json() | |
| else: | |
| raise Exception("Query failed to run by returning code of {}. {}".format(request.status_code)) | |
| def getImageName(playerName): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(XML) | |
| library(dplyr) | |
| library(lubridate) | |
| library(reshape2) | |
| library(ggplot2) | |
| fitbit <- xmlToDataFrame(getNodeSet(xmlParse("fitbit.tcx"), "//ns:Trackpoint", "ns"), | |
| stringsAsFactors = FALSE) | |
| strava <- xmlToDataFrame(getNodeSet(xmlParse("strava.tcx"), "//ns:Trackpoint", "ns"), |
NewerOlder