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
Homebrew build logs for homebrew/science/qgis on macOS 10.11.6 | |
Build date: 2016-11-21 09:29:26 |
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
screen /dev/tty.usbmodem1421 115200 |
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(rvest) | |
library(dplyr) | |
library(tidyr) | |
library(readr) | |
library(jsonlite) | |
library(lubridate) | |
### Begin scrape ### | |
polls <- xml2::read_html("http://projects.fivethirtyeight.com/2016-election-forecast/national-polls/") %>% | |
rvest::html_nodes(xpath = "//script[contains(., 'race.model')]") %>% |
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
export PROJECT_PATH=/path/to/project | |
docker-machine create --driver virtualbox default | |
docker-machine start | |
eval $(docker-machine env) | |
docker run -it --volume=$PROJECT_PATH --memory=4g --memory-swap=4g --entrypoint=/bin/bash rocker/r-base |
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
image: rocker/hadleyverse:latest | |
pipelines: | |
default: | |
- step: | |
script: | |
- cd /opt/atlassian/pipelines/agent/build | |
- Rscript -e 'devtools::install_deps(".", dependencies=TRUE, upgrade=FALSE)' | |
- Rscript -e 'devtools::build()' | |
- Rscript -e 'devtools::install(upgrade_dependencies = FALSE)' |
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
using Requests | |
function geocodeZipcode(zipcode) | |
resp = Requests.get("http://maps.googleapis.com/maps/api/geocode/json?address=$zipcode") | |
return(Requests.json(resp)) | |
end |
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
#!/bin/bash | |
while netstat -rn | grep -qi ${PROBLEM_IP}; do | |
sudo route -n flush | |
done | |
sudo ifconfig en0 down && sudo ifconfig en0 up |
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(httr) | |
baseurl = "https://api.darksky.net/forecast" | |
url = sprintf("%1$s/%2$s/%3$s/%4$s", baseurl, Sys.getenv("DARKSKY_API_KEY"), lat, lng) | |
resp = GET(url) | |
content(resp) |
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(httr) | |
baseurl = "https://maps.googleapis.com/maps/api/geocode/json" | |
res <- GET(baseurl, query=list(address = "1600 Amphitheatre Parkway, Mountain View, CA", key = Sys.getenv("GOOGLE_MAPS_KEY"))) | |
content(res)$results[[1]]$address_components[[7]]$short_name | |
lat = content(res)$results[[1]]$geometry$location$lat | |
lng = content(res)$results[[1]]$geometry$location$lng |
NewerOlder