Skip to content

Instantly share code, notes, and snippets.

View lmullen's full-sized avatar

Lincoln Mullen lmullen

View GitHub Profile
@lmullen
lmullen / index.html
Created October 3, 2022 21:15
Example of using Bootstrap framework
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demonstration of using BootStrap</title>
<!--
#!/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 October 17, 2015 13:29
With a file `test.md` in the current Vim buffer, open the file `test.md.pdf` in the OS.
command! -nargs=0 PDF call PDF()
function! PDF()
:silent exec "!open ".expand("%:p").".pdf"
endfunction
install.packages("genderdata", repos = "http://packages.ropensci.org", type = "source")
@lmullen
lmullen / README.md
Created April 15, 2015 18:40
First lesson in R for the Digital Past
@lmullen
lmullen / smithsonian.R
Created March 18, 2015 17:50
Metadata from Smithonian on Internet Archive
library(magrittr)
library(internetarchive)
query <- c("collection" = "smithsonian")
smithsonian <- query %>%
ia_search(num_results = 6000) %>%
ia_get_items() %>%
ia_metadata()
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 January 23, 2015 16:16
Scraping the Joseph Smith papers
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 December 16, 2014 22:23
Simple counter
<style>
#counter {
width:100%;
height:100%;
font-size:400px;
text-align:center;
padding-top:40px;
overflow:hidden;
}
::selection {
@lmullen
lmullen / README.md
Created December 16, 2014 20:15
Unzoomable d3-carto-map

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