Skip to content

Instantly share code, notes, and snippets.

Lincoln Mullen lmullen

Block or report user

Report or block lmullen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View upgrade-wordpress.sh
#!/usr/bin/env bash
set -e
VER=$1
ZIP="wordpress-$VER.zip"
URL="https://wordpress.org/$ZIP"
echo "Trying to upgrade to WordPress $VER"
echo "Downloading $URL"
@lmullen
lmullen / pdf.vim
Last active Oct 17, 2015
With a file `test.md` in the current Vim buffer, open the file `test.md.pdf` in the OS.
View pdf.vim
command! -nargs=0 PDF call PDF()
function! PDF()
:silent exec "!open ".expand("%:p").".pdf"
endfunction
View install.r
install.packages("genderdata", repos = "http://packages.ropensci.org", type = "source")
@lmullen
lmullen / README.md
Created Apr 15, 2015
First lesson in R for the Digital Past
View README.md
@lmullen
lmullen / smithsonian.R
Created Mar 18, 2015
Metadata from Smithonian on Internet Archive
View smithsonian.R
library(magrittr)
library(internetarchive)
query <- c("collection" = "smithsonian")
smithsonian <- query %>%
ia_search(num_results = 6000) %>%
ia_get_items() %>%
ia_metadata()
View pull_lists.R
This file has been truncated, but you can view the full file.
list(structure(list(ok = TRUE, content = list(structure(list(
sha = "2e39d0dbc2e1cccac2f2735fcf4534f9ff2f1e21", filename = "actionpack/lib/action_dispatch/http/url.rb",
status = "modified", additions = 6L, deletions = 4L, changes = 10L,
blob_url = "https://github.com/rails/rails/blob/797b8c2d13593d3c286cb7943c29df6928d397fa/actionpack/lib/action_dispatch/http/url.rb",
raw_url = "https://github.com/rails/rails/raw/797b8c2d13593d3c286cb7943c29df6928d397fa/actionpack/lib/action_dispatch/http/url.rb",
contents_url = "https://api.github.com/repos/rails/rails/contents/actionpack/lib/action_dispatch/http/url.rb?ref=797b8c2d13593d3c286cb7943c29df6928d397fa",
@lmullen
lmullen / scrape-smith-papers.R
Created Jan 23, 2015
Scraping the Joseph Smith papers
View scrape-smith-papers.R
library(rvest)
library(dplyr)
library(magrittr)
# First find the list of people and parse out their names and urls.
base <- "http://josephsmithpapers.org"
list_of_people <- "/reference/people#a::"
results <- paste0(base, list_of_people) %>%
html() %>%
html_nodes(".alphaItem")
@lmullen
lmullen / index.html
Created Dec 16, 2014
Simple counter
View index.html
<style>
#counter {
width:100%;
height:100%;
font-size:400px;
text-align:center;
padding-top:40px;
overflow:hidden;
}
::selection {
@lmullen
lmullen / README.md
Created Dec 16, 2014
Unzoomable d3-carto-map
View README.md

Using d3-carto-map to create a map which cannot be zoomed or panned.

@lmullen
lmullen / README.md
Created Dec 12, 2014
D3-carto with Albers USA projection
View README.md
You can’t perform that action at this time.