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 | |
curdir=$PWD | |
RED='\033[1;31m' | |
YELLOW='\033[1;33m' | |
GREEN='\033[1;32m' | |
NC='\033[0m' # No Color | |
cnt=0 | |
good=0 | |
untr=0 | |
uncom=0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"host": "localhost", | |
"port": 5432, | |
"database": "yourdatabase", | |
"user": "postgres", | |
"password": "postgres" | |
} |
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
/* If you've messed up and need to remove all the tables. */ | |
DROP TABLE listings.person CASCADE; | |
DROP TABLE listings.property CASCADE; | |
DROP TABLE listings.agency CASCADE; | |
DROP TABLE listings.agent CASCADE; | |
DROP TABLE listings.listing CASCADE; | |
DROP TABLE listings.offer CASCADE; |
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 | |
# This scrips is described in more detail at http://www.goring.org/resources/regex_bash_libraries.html | |
rinstall=0 | |
while getopts "i" OPTION | |
do | |
case $OPTION in | |
i) | |
echo Running installLib with the option to install packages. |
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
# Use the newer Neotoma API to pull sites with Fagus into a map from a JSON response. | |
# Used as part of the Data Demo Derby (hosted by EarthRates) | |
small_occ <- httr::GET('http://api-dev.neotomadb.org/v2.0/data/occurrence/?taxonname=Fagus&limit=5000') | |
small_content <- httr::content(small_occ) | |
library(dplyr) | |
site_table <- small_content$data %>% |
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 | |
### Set initial time of file | |
LTIME=`stat -c %Z ./$1.Rmd` | |
while true | |
do | |
ATIME=`stat -c %Z ./$1.Rmd` | |
if [[ "$ATIME" != "$LTIME" ]] |
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
# This script starts from scratch: | |
library(rgdal) | |
library(neotoma) | |
library(dplyr) | |
library(purrr) | |
library(sp) | |
library(datasets) | |
library(sf) |
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
RStudio Version: 1.0.136 | |
> print(sessionInfo()) | |
R version 3.3.3 (2017-03-06) | |
Platform: x86_64-pc-linux-gnu (64-bit) | |
Running under: Ubuntu 16.04.2 LTS | |
locale: | |
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C | |
[3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8 |
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
[1] "1.0.136" | |
$R | |
[1] "/usr/bin/R" | |
$pdflatex | |
[1] "" | |
$bibtex | |
[1] "" |