Skip to content

Instantly share code, notes, and snippets.

@lorennorman
lorennorman / lean coffee outline.md
Created November 30, 2022 20:39
how i commonly facilitate lean coffees, curious conversations

announcements and context (0-5min)

  • notes on context: work, "safe place", chatham house rules, etc
  • program notes or announcements, special bulletins, whatever

checkin (5min)

  • introductions if new people present
  • simple checkin game if all regulars

ideation (10min)

  • explainer as needed
@lorennorman
lorennorman / protobufs.json
Created November 28, 2022 16:05
JSON descriptor of the (current) wippersnapper protobufs as exported by protobuf.js
{
"nested": {
"wippersnapper": {
"nested": {
"signal": {
"nested": {
"v1": {
"nested": {
"Ds18x20Request": {
"options": {
@lorennorman
lorennorman / font_awesome_6.json
Last active August 18, 2022 18:50
JSON descriptor of all Font Awesome 6 icon names (except brands and duotone) as keys and their aliases as values
{
"0":[],
"1":[],
"2":[],
"3":[],
"4":[],
"5":[],
"6":[],
"7":[],
"8":[],
Connected!
Added sub 0
Added sub 1
Added sub 2
Added sub 3
Connecting to Wippersnapper MQTT...Connecting to: io.adafruit.com
Connect result: 1
MQTT connect packet:
[0x10], f [0x66], [0x00], [0x04], M [0x4D], Q [0x51], T [0x54], T [0x54],
[0x04], [0xC2], [0x00], [0x05], [0x00], + [0x2B], i [0x69], o [0x6F],
@lorennorman
lorennorman / class_component.js
Last active June 22, 2021 16:22
React: convert class -> functional component
// Class Style
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import injectReducer from 'utils/injectReducer';
import injectSaga from 'utils/injectSaga';
import reducer from './reducer';
@lorennorman
lorennorman / config_initializers_middleware_tracer.rb
Created April 20, 2020 17:03
drop-in initializer for tracing the Rails middleware stack, useful when you can't tell what is handling a request
# Draws the Middleware stack as the request propogates in and out.
module MiddlewareTracer
def call(env)
# request = ActionDispatch::Request.new(env)
puts "-> #{self.class.name}:"
status, headers, response = super(env)
puts "<- #{self.class.name}, Status: #{status}"
[status, headers, response]
end
end
@lorennorman
lorennorman / Paperize Roadmap.md
Last active July 13, 2019 00:23
Paperize Roadmap
@lorennorman
lorennorman / declarative_spec_format.coffee
Last active May 30, 2017 18:39
toying around with alternatives to the `describe`, `context`, `it`, `before`, `after` paradigm
describe "Post Management", ->
# eases visits and URL assertions
pages
posts: '/path/to/posts'
post: '/path/to/posts/:id'
# prepares for querying any elements you'll interact with
elements
submitButton: '.selector-for-submit'
backButton: '.selector-for-back'

Keybase proof

I hereby claim:

  • I am lorennorman on github.
  • I am lorennorman (https://keybase.io/lorennorman) on keybase.
  • I have a public key ASByaIYDSSHDmLag4Gc2l5r3LPTKrCL_mWnr0pB6s5fS7go

To claim this, I am signing this object:

@lorennorman
lorennorman / wizard.elm
Created September 8, 2015 17:41
first play with Elm
module Wizard where
import Debug
import StartApp.Simple as StartApp
import Signal exposing (Address)
import Time
import Maybe
import Html