Skip to content

Instantly share code, notes, and snippets.

@keevee09
keevee09 / brew_doctor.txt
Created December 19, 2017 21:54
brew doctor output on 20 Dec 2017
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
@keevee09
keevee09 / # paraview - 2017-12-20_09-53-13.txt
Created December 19, 2017 21:19
paraview (homebrew/science/paraview) on macOS 10.13.2 - Homebrew build logs
Homebrew build logs for homebrew/science/paraview on macOS 10.13.2
Build date: 2017-12-20 09:53:13
@keevee09
keevee09 / flair.R
Created May 28, 2017 06:30
Flair numbers in /r/rugbyunion
# /r/rugbyunion flair numbers
library(tidyverse)
flair <- read_csv('_r_rugbyunion_user_flair - Sheet1.csv')
flair
british_isles <- filter(flair, Flair_Code %in% c('england', 'ireland', 'wales', 'scotland'))
british_isles
@keevee09
keevee09 / renamefiles.fish
Created March 15, 2017 23:12 — forked from staydecent/renamefiles.fish
File renaming pattern for Fish Shell with OSX sed
# 'Item*' it the pattern to look for
# sed "s/I/i/g" is the replacement pattern
for f in Item*; mv $f (echo {$f} | sed "s/I/i/g"); end
@keevee09
keevee09 / # neovim - 2016-11-17_07-31-16.txt
Created November 16, 2016 18:52
neovim (neovim/neovim/neovim) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for neovim/neovim/neovim on macOS 10.11.6
Build date: 2016-11-17 07:31:16
@keevee09
keevee09 / Install_openCV_pyenv_OSX.md
Last active December 1, 2016 05:32
November 2016 installation of opencv3 from source into pyenv virtualenv python3.5.2 environment

Installing openCV3 into pyenv virtual env

osx 10.11.6

--

  • install python-3:
$ pyenv install 3.5.2
@keevee09
keevee09 / US_choropleth.R
Last active November 3, 2016 19:49
Minor update to tmap demo file US_choropleth.R
library("tmap")
library("readxl")
library("maptools")
library("grid")
# ers.usda.gov is undergoing change. found the file here:
download.file("http://www.ers.usda.gov/webdocs/DataFiles/Food_Atlas_Data_Access_and_Documentation_Downloads__18030//DataDownload.xls", destfile = "DataDownload.xls", mode="wb")
df <- read_excel("DataDownload.xls", sheet = "HEALTH")
# download data --- use link above as site is under construction
@keevee09
keevee09 / crimes_in_Greater_London.R
Created November 2, 2016 03:53
Edit to demo for R package tmap demo
library("tmap")
library("sp")
# read crime data, downloaded from https://data.police.uk/data/
tmpdir <- tempdir()
unzip("crimes_in_Greater_London_2016-08.zip", exdir = tmpdir)
crimes <- rbind(read.csv(file.path(tmpdir, "2016-08/2016-08-city-of-london-street.csv")),
read.csv(file.path(tmpdir, "2016-08/2016-08-metropolitan-street.csv")))
# create SpatialPointsDataFrame of known locations
@keevee09
keevee09 / load-images.js
Created April 2, 2016 01:31 — forked from mattdesl/load-images.js
load images in parallel
function loadImage(url, callback) {
var image = new Image();
image.onload = function() {
callback(null, image);
};
image.onerror = function() {
callback(new Error('Could not load image at ' + url));
};
image.src = url;
}
@keevee09
keevee09 / _verify-repair-permissions-disk.md
Created April 2, 2016 01:29 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /