Skip to content

Instantly share code, notes, and snippets.

@brianreavis
brianreavis / libvips.sh
Created August 21, 2015 19:46
Install an exact version of libvips (an adaptation of Lovell Fuller's script)
#!/bin/sh
# Ensures libvips is installed and attempts to install it if not
# Currently supports:
# * Debian Linux
# * Debian 7, 8
# * Ubuntu 12.04, 14.04, 14.10, 15.04
# * Mint 13, 17
# * Red Hat Linux
# * RHEL/Centos/Scientific 6, 7
# * Fedora 21, 22
@brianreavis
brianreavis / gdal.rb
Created July 26, 2015 02:50
Homebrew: GDAL 2.0 (w/o netcdf, hdf5)
class Gdal < Formula
desc "GDAL: Geospatial Data Abstraction Library"
homepage "http://www.gdal.org/"
url "http://download.osgeo.org/gdal/2.0.0/gdal-2.0.0.tar.gz"
sha256 "53761563ff53c5bf27bff7c4d6cab8bb1634baccefda05348e0f3b7acaf4c9e6"
revision 2
bottle do
sha256 "4f09a9aeb578a5c6039aa4d96c6d41c1640c02564f5c8ab70d5ccc5f8909936c" => :yosemite
sha256 "f5db3c5b5c078d5774123c58ca3a9c705809c99f0c9037056384649e55e5678a" => :mavericks
{
"create": [
{"class_id": 2556, "geom": [-116.55525863170622,44.364433213325434]}
{"class_id": 2556, "geom": [-116.62060797214507,44.36267672984909]}
{"class_id": 2556, "geom": [-116.5955400466919,44.20370459579528]}
{"class_id": 2556, "geom": [-116.59395217895508,44.20712705044437]}
// lake cascade
{"class_id": 000, "title": "Crown Point Trailhead", "geom": [-116.05524122714996,44.52621742874339]
{"class_id": 000, "title": "", "geom": []},
{"class_id": 000, "title": "", "geom": []},
@brianreavis
brianreavis / dropbox_exception_stacktrace.js
Created October 31, 2013 18:12
'data' has bad type; expecting string, got boolean
"exception": {
"*message": "'data' has bad type; expecting string, got boolean",
"Exceptionstring": "",
"*code": 0,
"*file": "(path)/inc/lib/dropbox/lib/Dropbox/Checker.php",
"*line": 22,
"Exceptiontrace": [
{
"file": "(path)/inc/lib/dropbox/lib/Dropbox/Checker.php",
"line": 47,
import processing.video.*;
import processing.opengl.*;
import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
MovieMaker mm;
ArrayList particles;
Minim minim;
/* add this... */
ol.dribbbles li div.dribbble-img, div.the-shot div.single-grid {
background: url(http://i.imgur.com/31Ca2d2.png);
}
@media only screen and (min-device-pixel-ratio: 2),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: ~"2/1") {