Skip to content

Instantly share code, notes, and snippets.

@mikemorris
mikemorris / coffee.csv
Last active December 3, 2020 23:05
coffee.csv
place login lat lon
The coffee bar espresso 38.91427 -77.02827
Bistro Bohem 2027355895 38.91538 -77.02013
Black Cat luckycat 38.91458 -77.03155
Snap nutella1 38.92239 -77.04227
Columbia Heights Coffee FAIRTRADE1 38.93222 -77.02854
Azi's Cafe sunny 38.90842 -77.02419
Blind Dog Cafe baxtercantsee 38.91931 -77.02518
Le Caprice baguette 38.93260 -77.03304
Filter 38.91368 -77.04509
@mikemorris
mikemorris / # urh - 2020-05-23_16-52-56.txt
Created May 23, 2020 21:39
urh on macOS 10.15.4 - Homebrew build logs
Homebrew build logs for urh on macOS 10.15.4
Build date: 2020-05-23 16:52:56
  • rustup doc --book doesn't seem to do anything
  • error: 'rustfmt' is not installed for the toolchain 'stable-x86_64-apple-darwin'
    • To install, run rustup component add rustfmt --toolchain stable-x86_64-apple-darwin
    • error: toolchain 'stable-x86_64-apple-darwin' does not contain component 'rustfmt' for target 'x86_64-apple-darwin'
    • rust-lang/rustup#1558
  • cargo new hello_cargo creates src/lib.rs, not main.rs
    • this default seems to no longer be the case on current version of rustup/rustc?
  • cargo check doesn't exist?
    • w0rp/ale vim plugin seems to integrate with it fine though?
  • Maybe a missing extern crate rand;?
@mikemorris
mikemorris / coffee.geojson
Last active March 26, 2018 01:02
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mikemorris
mikemorris / length.js
Created April 11, 2013 19:52
return length of piped JSON array
#!/usr/bin/env node
var buffer = '';
process.stdin.on('data', function(data) {
buffer += data;
});
process.stdin.on('end', function() {
console.log(Array.prototype.slice.call(JSON.parse(buffer.toString())).length);
@mikemorris
mikemorris / node-addon-resources.md
Last active April 9, 2016 04:08
Node.js C++ Addon Resources
We unit test our blog at MapBox
We're using automated unit testing on our blog
Unit testing our blog
We're QAing our @jekyllrb blog using @travisci unit testing
Speeding up QA by unit testing our blog
Add mentions to jekyll and travis at end: [link] @jekyllrb @travisci
Configuration file: /Users/mikemorris/Dropbox/Sites/mapbox.github.com/_config.yml
Source: /Users/mikemorris/Dropbox/Sites/mapbox.github.com
Destination: /Users/mikemorris/Dropbox/Sites/mapbox.github.com/_site
Generating... /Users/mikemorris/Dropbox/Sites/mapbox.github.com/_plugins/excerpt.rb:4:in `to_liquid': wrong number of arguments (1 for 0) (ArgumentError)
from /Users/mikemorris/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-1.2.1/lib/jekyll/post.rb:252:in `render'
from /Users/mikemorris/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-1.2.1/lib/jekyll/site.rb:205:in `block in render'
from /Users/mikemorris/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-1.2.1/lib/jekyll/site.rb:204:in `each'
from /Users/mikemorris/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-1.2.1/lib/jekyll/site.rb:204:in `render'
from /Users/mikemorris/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-1.2.1/lib/jekyll/site.rb:36:in `process'
from /Users/mikemorris/.rvm/gems/ruby-2.0.0-p247/gems/jekyll-1.2.1/lib/
In file included from ../src/binding.cpp:18:
../src/pbf.hpp:94:55: warning: variable 'end' is uninitialized when used within its own initialization [-Wuninitialized]
const int8_t* end = reinterpret_cast<const int8_t*>(end);
var map = L.mapbox.map('map', 'tmcw.map-u4ca5hnt', {
tileLayer: {
detectRetina: true
}
});