#til 6 hashtags

Todd Sundsted

TIL

The (the Unicode ellipsis character) works as both a Crystal Language macro and method name, as in:

macro …(str, n)
  Ktistec::Util.render_as_text_and_truncate({{str}}, {{n}})
end

Which can be used in a view template as:

= … preview, 120

I'm not saying you should. I'm saying you can.

#crystallang #til

Todd Sundsted
Todd Sundsted

TIL git commit --fixup and git rebase --autosquash

very slick! of course i used them via magit

#til #git #magit

Todd Sundsted

i caught this out of the corner of my eye on a screen at the coffeeshop this morning, and thought "is that brent spiner?!?"

brent spiner on night court

it turns out he played the hard-luck character bob wheeler on several episodes of night court before playing the character data on star trek the next generation.

#til

Todd Sundsted

a catenary is the shape a rope (or chain, or power line) assumes when it's hung at its ends. it may look like a parabola but it's not.

#til

Todd Sundsted