- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_use] | |
extern crate serde_derive; | |
extern crate serde; | |
extern crate warp; | |
use warp::Filter; | |
fn main() { | |
// Match any request and return hello world! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
STOP_WORDS = %w[ the for in ].map(&:downcase) | |
puts ARGF.read.split(/[^\w]+/) | |
.map(&:downcase) | |
.reject {|word| STOP_WORDS.include?(word) } | |
.each.with_object(Hash.new(0)) {|word, freqs| freqs[word] += 1 } | |
.sort_by {|_, freq| freq } | |
.reverse | |
.take(25) | |
.map {|word, freq| "#{word} - #{freq}" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ ruby irv.rb | |
{:rain=>7, :women=>5, :islands=>4, :trees=>6, :salmon=>9, :parks=>5} | |
Eliminating: [:islands] | |
{:rain=>8, :women=>5, :parks=>6, :trees=>6, :salmon=>11} | |
Eliminating: [:women] | |
{:rain=>9, :parks=>6, :trees=>7, :salmon=>14} | |
Eliminating: [:parks] | |
{:rain=>10, :trees=>10, :salmon=>16} | |
Eliminating: [:rain, :trees] | |
Winner: salmon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
gem "activerecord" | |
gem "sqlite3" | |
group :development do | |
gem "pry" | |
end |