Having 500 available characters is better than 280, and I have no idea how we ever fit these in 140.
Having 500 available characters is better than 280, and I have no idea how we ever fit these in 140.
Almost used “penultimate” there. Almost.
Sometimes, git rebase -i HEAD~2
, then flipping the commit order and git commit --amend
is just the most convenient way to amend the second last commit. 🤷♀️
Vim quicktip #6: Use NeoVim’s inccommand
option for live substitutions.
:set inccommand=nosplit
shows substitutions happening as you type, and :set inccommand=split
adds a preview window to show off-screen replacements.
It’s Tuesday, so it’s time for another instrumental-progressive-metal-bands-weekly! This time, check out Intervals’ “The way forward” from 2017. 🎸
Just restored my tmux session to the last time I accidentally pressed ⌃A+⌃S. We’re living in the future.
What’s the nicest way for an Elixir library to depend on either Jason or Poison? Ideally, it’d be like an optional dependency which uses whatever’s available. The libary needs a JSON encoder to function, though, so I can’t make them both optional.
brb, #heelhollandbakt.
Trying something new. Here’s a braindump to explain contexts in Phoenix, which might eventually become an article. I’d love to know what you think.
https://gist.github.com/
Because I needed it to post a multi-update reply, Dolphin now properly supports reply threads.
https://github.com/
Architects
What do we call Ruby’s &:
syntax in ["a", "b", "c"].map(&:upcase)
? Is that a “symbol-proc”?
I guess I have a Vim blog now. It’s called “vim quicktip from:jkreeftmeijer”. https://twitter.com/
Using vim-numbertoggle and tmux? Does toggling relative line numbers work for you when switching from Vim to another tmux pane? If not, I’d appreciate it if you’d chime in to this issue.
It sounds like Euruko 2019’s tickets are selling as fast as the 2011 edition in Berlin. 😯
https://twitter.com/
First batch sold out in 15 min 😳 https://t.co/
— Rayta 🏳️🌈 (@raytalks) January 10, 2019wC8CVY6Ln1
You know what’s even more even work than you’d think? Writing a tool that splits, converts and posts Markdown updates to Twitter, Mastodon and Github based on their contents.
It’s called Dolphin, and I’ve been using it myself for over a month now. 🐬
Accidentally Bandersnatched my keyboard. 🍵
You can toggle the macOS system appearance, the Terminal theme and Vim’s background between light and dark at once using an AppleScript, a Terminal theme that supports it, and a custom Vim command.
Vim quicktip #5: gq{motion}
wraps lines to fit the configured textwidth (:set textwidth
). If textwidth is not set, #vim will use the screen width (with a maximum of 79).
Use gqq
to format the current line, or gq
in visual select mode to format all selected lines.
This is especially useful to make sure the lines in your commit messages aren’t longer than 72 characters. vim-fugitive automatically sets the textwidth option to 72 when writing a commit message with :Gcommit
.
@template Sorry! Just now noticing that https://twitter.com/
How ERB uses Binding
objects:
class DiyErb
def initialize(template)
@template = template
end
def result(binding)
@template.gsub(/<%=(.+?)%>/) do
binding.eval($1)
end
end
end
https://blog.appsignal.com/
Our editor added a “thus” to my article. 🧐
Any recommendations for a Ruby oEmbed library? I’d like to fetch cards for popular services on the server side without adding any external javascript to my pages.
I now take the returned javascript out manually for Twitter cards. 😕
more.autolinks.everything.is.a.tld.now
Welcome back to another episode of primarily-instrumental-progressive-rock-bands weekly! This time, check out Polyphia’s 2018 album “New Levels New Devils”.
Happy listening and until next week! 👋