This file contains 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
tifs_to_project = FileList["*.tif"].exclude(/epsg3857/).ext(".epsg3857.tif") | |
desc "Reproject all geotiffs into EPSG:3857" | |
multitask :default => tifs_to_project | |
rule( /\.epsg3857\.tif$/ => [ | |
proc {|task_name| task_name.sub(/\.epsg3857\.tif$/, '.tif') } | |
]) do |t| | |
system "gdalwarp -t_srs EPSG:3857 -s_srs EPSG:4326 #{t.source} #{t.name}" | |
end |
This file contains 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
desc "Download the WPA Slave Narratives using wget" | |
task :wget_wpa do | |
system %{wget --wait 1 --limit-rate=200k -A .jpg,.png,.gif,.txt,.tif,.pdf --no-parent --background --mirror http://memory.loc.gov/mss/mesn/} | |
end | |
This file contains 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
tifs_to_project = FileList["*.tif"].exclude(/epsg3857/).ext(".epsg3857.tif") | |
desc "Reproject all geotiffs into EPSG:3857" | |
multitask :default => tifs_to_project | |
rule( /\.epsg3857\.tif$/ => [ | |
proc {|task_name| task_name.sub(/\.epsg3857\.tif$/, '.tif') } | |
]) do |t| | |
system "gdalwarp -t_srs EPSG:3857 -s_srs EPSG:4326 #{t.source} #{t.name}" | |
end |
This file contains 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/sh | |
cd /home/lmullen/acad/research/wiki && /home/lmullen/.cabal/bin/gitit -f my.conf > /dev/null 2>&1 & | |
This file contains 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
# apt-get installs | |
sudo apt-get install synaptic | |
sudo apt-get install mercurial | |
sudo apt-get install libssl-dev | |
sudo apt-get install dconf-editor | |
sudo apt-get install pdftk | |
sudo apt-get install ubuntu-restricted-extras | |
sudo apt-get install gm-notify | |
sudo apt-get install unity-tweak-tool |
This file contains 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(rgdal) # R wrapper around GDAL/OGR | |
library(ggplot2) # for general plotting | |
library(ggmaps) # for fortifying shapefiles | |
# First read in the shapefile, using the path to the shapefile and the shapefile name minus the | |
# extension as arguments | |
shapefile <- readOGR("path/to/shapefile/", "name_of_shapefile") | |
# Next the shapefile has to be converted to a dataframe for use in ggplot2 | |
shapefile_df <- fortify(shapefile) |
This file contains 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
#!/usr/bin/env python | |
# encoding: utf-8 | |
import time | |
import _thread | |
import RPi.GPIO as GPIO | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(11, GPIO.OUT) |
This file contains 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
javascript:(function() {window.location=window.location.toString().replace(/(.org|.com)/,"$1.resources.library.brandeis.edu");})() |
This file contains 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
#!/usr/bin/env ruby | |
# Write git commit messages to a log file | |
# | |
# Lincoln A. Mullen | [email protected] | http://lincolnmullen.com | |
# MIT License <http://lmullen.mit-license.org/> | |
# | |
# You will have to install the git gem for this to work: | |
# gem install git | |
# |
This file contains 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
SELECT `text`, COUNT(`text`) | |
FROM `omeka_element_texts` | |
WHERE `element_id` = 37 | |
GROUP BY `text` |