https://iterm2.com/documentation-dynamic-profiles.html
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
// Example usage
// 1. Create two nice profiles in iTerm
https://iterm2.com/documentation-dynamic-profiles.html
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
// Example usage
// 1. Create two nice profiles in iTerm
I like writing well-formed git commits that explain the intention behind why a code change was made.
Check out Chris Beams excellent How to Write a Git Commit Message if you haven't read it.
Anyway, for a project I've been working on I've gathered up 900+ commits that hold up a pretty high quality (except for one 😁). Let's look at some trends about these commits!
You may have read the following excellent blogpost by Brian Helmkamp of CodeClimate. It nicely describes 7 types of objects that can be extracted from models and controllers in a Rails-app.
7 Patterns to Refactor Fat ActiveRecord Models https://codeclimate.com/blog/7-ways-to-decompose-fat-activerecord-models/ Brian Helmkamp on Oct 17, 2012.
Here are my thoughts on it, reading it as an experienced rails developer, 7 years later 😅 👴
defmodule Marbles do | |
def new do | |
%{size: 0, current: 0, counter: 0} | |
end | |
def to_list(state) do | |
[] | |
|> do_to_list(state, state.current, state.current) | |
|> Enum.reverse | |
end |
Firstly, what is <details>
<summary>
?
The HTML Details Element (
<details>
) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the<summary>
element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.
If you are using asdf to install node versions like me, and also sometimes use yarn, you might be tempted to just run brew install yarn
, but that will give you trouble when it brings down the node
package as well.
See yarn installation instructions that suggests brew install yarn --without-node
instead.
I had some fun pimping my development setup during my summer vacation 🏖 🏝 and
here's what I came up with. A script toggle-dark-mode
that toggles dark mode for
not only Mac OS, but also Hyper, tmux and vim at once. I'm gonna be so
productive now.. 😁
*(I've customized Hyper term to remove dead space on top for maximized windows,