Skip to content

Instantly share code, notes, and snippets.

View ajpierce's full-sized avatar

Andrew J. Pierce ajpierce

View GitHub Profile
@ajpierce
ajpierce / hs_err_pid9994.log
Created January 12, 2020 13:12
When attempting to (py/initialize!), I crashed the REPL
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xa3f1b11c, pid=9994, tid=0xa86fe460
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b76) (build 1.8.0_152-b76)
# Java VM: OpenJDK Client VM (25.152-b76 mixed mode, Evaluation linux-aarch32 )
# Problematic frame:
# C [libpython3.7m.so+0x1ff11c] PyObject_GetAttrString+0x0
#
@ajpierce
ajpierce / underrun.js
Created December 10, 2015 02:03
Script to replicate issue seen in https://github.com/pilwon/node-ib/issues/8
'use strict';
// Third party libs -- install via npm
var IBAPI = new require('./node-ib');
var _ = require('lodash');
var moment = require('moment');
// Config vars
var config = {
barSize: 60,
durationString: '2 D',
@ajpierce
ajpierce / index.html
Created August 13, 2014 16:21
Mapbox-GL Random Points
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.2.2/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.2.2/mapbox-gl.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@ajpierce
ajpierce / cardioActivities.csv
Last active August 29, 2015 14:01
2014 Cardio Activities
Date Type Route Name Distance (mi) Duration Average Pace Average Speed (mph) Calories Burned Climb (ft) Average Heart Rate (bpm) Notes GPX File
2014-05-20 10:08:26 Running 5.82 53:15 9:09 6.56 772.0 81.91 156 2014-05-20-1008.gpx
2014-05-19 09:54:10 Running 6.06 55:37 9:11 6.53 805.0 88.92 157 2014-05-19-0954.gpx
2014-05-17 09:30:36 Running 2.11 15:48 7:30 8.00 282.0 29.79 172 2014-05-17-0930.gpx
2014-05-15 09:37:01 Running 4.74 44:48 9:27 6.35 629.0 81.45 160 2014-05-15-0937.gpx
2014-05-13 09:04:32 Running 2.25 19:27 8:38 6.95 300.0 31.36 158 2014-05-13-0904.gpx
2014-05-08 09:50:47 Running 2.25 18:28 8:12 7.32 299.0 31.21 165 2014-05-08-0950.gpx
2014-05-06 10:22:11 Running 8.02 1:14:35 9:18 6.45 1066.0 136.00 160 2014-05-06-1022.gpx
2014-05-05 10:56:44 Running 2.25 18:04 8:02 7.47 298.0 29.64 166 2014-05-05-1056.gpx
2014-05-02 10:18:15 Running 6.26 57:50 9:14 6.50 831.0 102.09 159 2014-05-02-1018.gpx