Skip to content

Instantly share code, notes, and snippets.

View RichMorin's full-sized avatar

Rich Morin RichMorin

  • Canta Forda Computer Laboratory
  • Marysville, WA, USA
View GitHub Profile
@RichMorin
RichMorin / gist:cebe6dbeede9fdee6aa29d5182aa6f56
Last active July 13, 2016 01:02
failing run of "mix compile" for Nerves
$ mix compile
Nerves Precompile Start
Nerves Env current
Nerves Env loaded
Nerves Precompile End
===> Command bare not found
** (Mix) Could not compile dependency :cf, "/usr/local/bin/rebar3 bare compile --paths "/Volumes/Fido/Local/u/rdm/Dropbox/Elixir/hello_nerves/_build/rpi2/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile cf", update it with "mix deps.update cf" or clean it with "mix deps.clean cf"
Per jschneck, tried:
@RichMorin
RichMorin / erb_nl_nit
Created January 2, 2017 02:08
demonstrate newline-handling nit
#!/usr/bin/env ruby
#
# erb_nl_nit - minimal example of Embedded Ruby newline nit
#
# The Embedded Ruby implementation for Sinatra removes (some) newlines.
# Basically, if an interpolated string is on a line by itself (no text
# either before or after), the newline goes away. The Ruby ERB library
# does not exhibit this problem.
#
# The input and results are displayed on STDOUT and the output web page.
# I've been geting irb nastygrams for a while, but given that I just updated
# my copy of Ruby and all the Gems, I was hoping that it would go away. Help?
$ irb
Ignoring libxml-ruby-2.7.0 because its extensions are not built.
Try: gem pristine libxml-ruby-2.7.0
Ignoring sqlite3-1.3.9 because its extensions are not built.
Try: gem pristine sqlite3-1.3.9
$ gem pristine libxml-ruby-2.7.0
@RichMorin
RichMorin / demo.css
Created March 19, 2012 16:20
Hive Plot Demo Rework
/* demo.css */
.axis {
stroke: #000;
stroke-width: 1.5px;
}
#demo_1 svg, #demo_2 svg { border: solid 1px #ccc; }