Skip to content

Instantly share code, notes, and snippets.

View rundel's full-sized avatar

Colin Rundel rundel

View GitHub Profile
@rundel
rundel / gist:c7d31b0dc8bd63193058af3a82719cbb
Created March 21, 2018 17:31
valgrind output using proj 5.0.0 with gdal 1.11.5
$ valgrind ogr2ogr -t_srs EPSG:4326 proj2.shp proj.shp
==79476== Memcheck, a memory error detector
==79476== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==79476== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
==79476== Command: ogr2ogr -t_srs EPSG:4326 proj2.shp proj.shp
==79476==
--79476-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option
--79476-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times)
--79476-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times)
--79476-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 8 times)
MULTIPOLYGON (((-76.5442733764648 34.5878295898438, -76.5551452636719 34.6106605529785, -76.5377502441406 34.6139221191406, -76.4844818115234 34.6976318359375, -76.4322967529297 34.760684967041, -76.3746795654297 34.8128700256348, -76.2877044677734 34.877010345459, -76.4692611694336 34.6932830810547, -76.5442733764648 34.5878295898438)), ((-76.0170059204102 35.0694351196289, -75.9756927490234 35.1161842346191, -75.8539352416992 35.1672821044922, -75.7637023925781 35.1922836303711, -75.8115386962891 35.1640205383301, -75.9039459228516 35.1324920654297, -76.0028762817383 35.0694351196289, -76.0170059204102 35.0694351196289)), ((-76.0271682739258 36.5567169189453, -75.998664855957 36.5566520690918, -75.9119186401367 36.5425300598145, -75.9248046875 36.4739761352539, -75.9772796630859 36.4780158996582, -75.9762878417969 36.5179252624512, -76.0271682739258 36.5567169189453)), ((-75.4912185668945 35.6704978942871, -75.5336227416992 35.768856048584, -75.4569778442383 35.6173973083496, -75.5262985229492 35.2279167175
@rundel
rundel / libspatialite.patch
Created November 13, 2017 01:35
Patch for libspatialite to support lwgeom >= 2.2
diff --git a/src/gaiageo/gg_lwgeom.c b/src/gaiageo/gg_lwgeom.c
index 0ae8e71..328a5bc 100644
--- a/src/gaiageo/gg_lwgeom.c
+++ b/src/gaiageo/gg_lwgeom.c
@@ -90,29 +90,29 @@ splite_lwgeom_version (void)
static void
lwgaia_noticereporter (const char *fmt, va_list ap)
{
- char *msg;
- if (!lw_vasprintf (&msg, fmt, ap))
library(shiny)
library(tidyverse)
library(gridExtra)
ui <- fluidPage(
titlePanel("Frequency Decryption: A Broken Algorithm"),
tags$br(),
tags$br(),
@rundel
rundel / # jsoncpp - 2017-08-31_15-52-40.txt
Created August 31, 2017 20:06
jsoncpp on macOS 10.13 - Homebrew build logs
Homebrew build logs for jsoncpp on macOS 10.13
Build date: 2017-08-31 15:52:40
loc,bottom,surface
1,0.43,0.415
2,0.266,0.238
3,0.567,0.39
4,0.531,0.41
5,0.707,0.605
6,0.716,0.609
7,0.651,0.632
8,0.589,0.523
9,0.469,0.411
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
truncate_prettify = function(s, n = 20)
{
# s - json character string
# n - number of lines
library(stringr)
stopifnot(length(s)==1)
stopifnot(is.character(s))
@rundel
rundel / chol_test.cpp
Created May 31, 2013 19:22
Standalone arma example
#include <RcppArmadilloConfig.h>
#undef ARMA_DEFAULT_OSTREAM
#define ARMA_DEFAULT_OSTREAM std::cout
#include <armadillo>
int main()
{
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) (format=pdflatex 2012.7.31) 24 FEB 2013 21:36
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**Lec10.tex
(./Lec10.tex
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, dumylang, nohyphenation, ba
sque, danish, dutch, ukenglish, usenglishmax, finnish, french, german, ngerman,
swissgerman, hungarian, italian, bokmal, nynorsk, polish, portuguese, spanish,