Skip to content

Instantly share code, notes, and snippets.

https://github.com/qmacro/level-up-your-json-fu-with-jq/blob/main/talknotes.md
pbpaste | from json
pbpaste | save environment.json
# jq '.availableEnvironments|length' environments.json
open environment.json | get availableEnvironments | length
# jq -r '.[].name' offerings.json
array5<array5<int5>> X;
X.each(function (row) {
row.each(function (cell) {
invariant cell.between?(1, 5);
});
});
function valid?(ary) {
invariant ary.uniq?;
# frozen_string_literal: true
source "https://rubygems.org"
gem "jasmine", git: "https://github.com/jasmine/jasmine-gem.git", branch: "main"
extension Int {
var bcd: [UInt8] {
var d: [UInt8] = []
var n = self
while n > 0 {
let (q, r) = n.quotientAndRemainder(dividingBy: 100)
let (hundreds, tens) = r.quotientAndRemainder(dividingBy: 10)
d.append(UInt8((hundreds << 4) | tens))
n = q
}
#!/usr/bin/env ruby -w
require "openssl"
FLD_DIGIT_SHIFT = 6;
FLD_DIGIT_MASK = (0b111 << FLD_DIGIT_SHIFT);
FLD_NUMSECONDS_SHIFT = 0;
FLD_NUMSECONDS_MASK = (0b11 << FLD_NUMSECONDS_SHIFT);
def bcd(str)
require "date"
require "open-uri"
class Store
def initialize(base_dir)
@base_dir = base_dir
end
# Super inefficient, but whatever...
def []=(date, day_data)


  • Stress + rest = growth
  • Schadenfreude
  • Zugzwang
  • Shibboleth
  • Dunning-Kruger Effect
  • L'esprit de l'escalier: ("staircase wit") is a French term used in English for the predicament of thinking of the perfect reply too late.


  • Stress + rest = growth
  • Schadenfreude
  • Zugzwang
  • Shibboleth
  • Dunning-Kruger Effect
  • L'esprit de l'escalier: ("staircase wit") is a French term used in English for the predicament of thinking of the perfect reply too late.
require "yaml"
require "minitest/autorun"
require "minitest/pride"
class TestStatement < Minitest::Test
def statement(invoice, plays)
total_amount = 0
volume_credits = 0
result = "Statement for #{invoice.fetch("customer")}\n"
  • asymmetric colocation
    • Kevin: put your zoom room in your slack status
    • Teamspeak
  • tools for screen sharing w/clients
    • Team Viewer
    • Tandem ("do not share with clients")
    • Zoom
    • WebEx?
  • wearing headphones all day
  • krisp (?) audio filter