Skip to content

Instantly share code, notes, and snippets.

View desmondmorris's full-sized avatar

Desmond Morris desmondmorris

View GitHub Profile
@desmondmorris
desmondmorris / ipak.R
Created June 7, 2016 02:27 — forked from stevenworthington/ipak.R
Install and load multiple R packages at once
# ipak function: install and load multiple R packages.
# check to see if packages are installed. Install them if they are not, then load them into the R session.
ipak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
curl -s https://gist.githubusercontent.com/desmondmorris/844bb652ba53b313030c/raw/c9e945b4a0ad993c4fce1b5d35ecbfb1a49e231e/jekins_server.sh | sudo sh
@desmondmorris
desmondmorris / 0_reuse_code.js
Created March 5, 2014 19:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@desmondmorris
desmondmorris / fuel.py
Created December 19, 2012 13:13 — forked from NorthIsUp/fuel.py
# blog post explaining all of this coming soon.
import requests
from pprint import pprint
try:
import simplejson as json
except ImportError:
import json