Skip to content

Instantly share code, notes, and snippets.

Rich Morin RichMorin

Block or report user

Report or block RichMorin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:731f02684684df8cc47ee5db4a3ab40b
# 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 / erb_nl_nit
Created Jan 2, 2017
demonstrate newline-handling nit
View erb_nl_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.
RichMorin / gist:cebe6dbeede9fdee6aa29d5182aa6f56
Last active Jul 13, 2016
failing run of "mix compile" for Nerves
View gist:cebe6dbeede9fdee6aa29d5182aa6f56
$ 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 / dn2.t2
Created Jun 13, 2014
redo_nodes - redo node sets into TSV data rows
View dn2.t2
dbpr_!Kheis_Local_Municipality ||
dbpr_!Women_Art_Revolution ||
dbpr_"A,"_My_Name_is_Alex_-_Parts_I_&_II ||
dbpr_"Awesome" ||
dbpr_"Banksy_of_Bulgaria" ||
dbpr_"Big"_Brian_Subich ||
dbpr_"Big"_Paul_Williams ||
dbpr_"C"_Is_for_(Please_Insert_Sophomoric_Genitalia_Reference_Here) ||
dbpr_"D"_Is_for_Dubby_–_The_Lustmord_Dub_Mixes ||
dbpr_"Dor-en-Ernil" ||
View yaml_fu.go
// yaml_fu.go - try out YAML library
// Written by Rich Morin, CFCL, 2014
package main
import ("fmt"; "log")
import ""
type T map[string] map[string] [4]string
RichMorin / MBTI_3.json
Last active Dec 14, 2015
Treemap of MBTI statistics
View MBTI_3.json
{ "title": "MBTI_3.json",
"name": "MBTI",
"children": [
"name": "E",
"children": [
"name": "EN",
"children": [
View Data Formats - CSV
The following entries describe the content of the heading row
and the first data row in each CSV file.
axis "../data/stocks.csv"
symbol S&P 500
date Jan 2000
price 1394.46
View out.part.json
"YARD": {
"attributes": {"instance":{},"class":{}},
"children": ["YARD::VERSION","YARD::ROOT","YARD::TEMPLATE_ROOT","YARD::CONFIG_DIR","YARD.parse","YARD.parse_string","YARD.load_plugins","YARD::Config","YARD::Server","YARD::CLI","YARD::Logger","YARD::Options","YARD::Registry","YARD::CodeObjects","YARD::Handlers","YARD::I18n","YARD::Parser","YARD::Rake","YARD::Serializers","YARD::Tags","YARD::Templates","YARD::Verifier","YARD::Docstring","YARD::RegistryStore","YARD::DocstringParser","YARD::StubProxy"],
"docstring": "",
"files": [["lib/yard.rb",1],["lib/yard/config.rb",1],["lib/yard/server.rb",1],["lib/yard/cli/yri.rb",3],["lib/yard/logging.rb",3],["lib/yard/options.rb",1],["lib/yard/cli/i18n.rb",3],["lib/yard/cli/help.rb",1],["lib/yard/cli/gems.rb",1],["lib/yard/cli/list.rb",1],["lib/yard/cli/diff.rb",5],["lib/yard/registry.rb",4],["lib/yard/autoload.rb",4],["lib/yard/tags/tag.rb",1],["lib/yar
RichMorin / x.out
Created May 15, 2012
YARD Registry Dumper
View x.out
# file_path: "yard/.yardoc"
# options: {:types=>[:namespace, :method], :levels=>2}
# node_path: "YARD"
"@context": {
"type": "@type",
"y_ld": "",
"yard": "",
RichMorin / demo.css
Created Mar 19, 2012
Hive Plot Demo Rework
View demo.css
/* demo.css */
.axis {
stroke: #000;
stroke-width: 1.5px;
#demo_1 svg, #demo_2 svg { border: solid 1px #ccc; }
You can’t perform that action at this time.