Skip to content

Instantly share code, notes, and snippets.

Key Display Description Category c definition JS Keycode
A Alphabet KC_A 65
B Alphabet KC_B 66
C Alphabet KC_C 67
D Alphabet KC_D 68
E Alphabet KC_E 69
F Alphabet KC_F 70
G Alphabet KC_G 71
H Alphabet KC_H 72
I Alphabet KC_I 73

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@sethherr
sethherr / FrameModel.rb
Last active July 27, 2017 21:22
Bikebook schemaing
class FrameModel
def components_serialized
components.map do |c|
cgroup = "Additional parts"
cgroup = c.ctype.cgroup if c.ctype.present?
comp = {
component_type: c.name,
description: c.description,
front_or_rear: c.front_or_rear,
year: c.year,

Some of the biases I have when considering code:

This list is particularly targeted at Ruby code, since that's what I have the most experience with

Delegation: Spent multiple days working on a bug without realizing it was delegated in the place it was occuring. I think it started out not delegated and became so later on, so tests weren't catching it, and delegation overrode one of the methods? In general, I feel like any time spent figuring out what something actually is, if it seems to be one thing in the code but is actually a different thing, is wasted time.

Single Responsibility Principle: Bike Index bike creation bug hunts. Any new service has to be compared against the Bike Index bike creation process - where when there is a bug, I have to trace it through a series of files. I feel like this tracery is a waste of time. Unless multiple other files need access to the same thing, I'm generally opposed to creating extra files.

Hand written sql: You can extend things that are Active Rec

My moderately in depth review of albums from the list I sent. Anything on this is on Spotify (and the album links there) because I'm too lazy to find them elsewhere (🙇‍♂️ to Jeff for finding the ringing rocks link).

One thing to note: I listen to music regularly these days, but pretty much only when working. I generally like music with lyrics, but I can't do new music with lyrics, because it's distracting, so I mostly listen to the same things over and over.

So I decided to go through the list and listen to all the albums that seemed interesting.

Here are the ones I will listen to again:

| Artist | Album | List description | My review |

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Choosing a bicycle drivetrain

Parts of

Things that make up a bicycle drivetrain. All parts are not present on all bike

Pedals

How you apply force to the drivetrain. In general, there are three categories: flat pedals, pedals with clips or straps, or clipless pedals