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
// ----------------------------------------------------------------------------------------------------------------------- | |
// // Surfingkeys: https://github.com/brookhong/Surfingkeys#properties-list | |
// // Dracula Theme: https://github.com/dracula/dracula-theme#color-palette | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Map Keys | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change default search engine | |
//settings.defaultSearchEngine = "w"; | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change hints styles |
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
# -*- coding: utf-8 -*- | |
''' | |
This Python script is oriented towards oil, gas, and fracking well | |
information download, extract, and output at the state-level within | |
the United States of America. Not all states are present as not all | |
states either allow fracking or have any sites available for download. | |
This Python script is dependent upon another Python script entitled | |
Src2Tgt.py, which is also available as a Gist under the same name. |
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
growl.notify <- function(msg = "Operation complete") { | |
in.osx <- (Sys.info()['sysname'] == "Darwin") | |
in.rstudio <- (Sys.getenv("RSTUDIO") == "1") | |
in.rgui <- (Sys.getenv("R_GUI_APP_REVISION") != "") | |
dir.notifier <- system("which growlnotify", intern = TRUE) | |
if (in.rstudio) { # hack to see if running in RStudio | |
title <- "RStudio" | |
} |
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
notify <- function(msg="Operation complete") { | |
in.osx <- (Sys.info()['sysname'] == "Darwin") | |
in.rstudio <- (Sys.getenv("RSTUDIO") == "1") | |
in.rgui <- (Sys.getenv("R_GUI_APP_REVISION") != "") | |
dir.notifier <- system("which terminal-notifier", intern = TRUE) | |
if (in.rstudio) { # hack to see if running in RStudio | |
title <- "RStudio" | |
sender <- activate <- "org.rstudio.RStudio" |
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
##Following libraries need to be installed for running the program | |
##by using the install.packages(c(“raster”,”rgdal”,”ncdf”,”gdata”)) | |
library(raster) | |
library(ncdf) | |
library(rgdal) | |
library(gdata) | |
#Using setwd to direct the unzipped .bil files like | |
setwd(“D:/Weather/PRISM_ppt_stable_4kmD1_20130101_20131231_bil”) | |
#******************************************************************# | |
#***function for merge daily 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
library(raster) | |
library(rgdal) | |
library('rgbif') | |
library('sp') | |
library('maptools') | |
library('rgeos') | |
library('scales') | |
# library(rts) #for raster time series http://r-gis.net/?q=rts | |
library(ggplot2) | |
library(reshape) |
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
# | |
# I used this command to recursively unzip the files I downloaded from PRISM. | |
# Data is structured as | |
# | |
# tmin | |
# -- 1981 | |
# ----xxx.zip | |
# ----xxy.zip | |
# -- 1982 | |
# ----xxx.zip |
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
from whoosh.index import open_dir | |
from whoosh.index import create_in | |
from whoosh.fields import * | |
from whoosh.qparser import QueryParser | |
import glob | |
import os | |
# USER SET PARAMETERS ############ |
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 | |
# | |
# Notify of Homebrew updates via Notification Center on Mac OS X | |
# | |
# Author: Chris Streeter http://www.chrisstreeter.com | |
# Requires: terminal-notifier. Install with: | |
# brew install terminal-notifier | |
TERM_APP='/Applications/Terminal.app' | |
BREW_EXEC='/usr/local/bin/brew' |
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
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |