Skip to content

Instantly share code, notes, and snippets.

View 1_rewriting_a_codebase_with_sourceror.exs
# for an example of a suggested `locals_without_parens`, see z_locals_without_parens.exs
# parsing and expanding a formatter.exs file would be a good route too
opts = [sourceror_opts: [locals_without_parens: [...], line_length: 122]]
for transformation <- [&, &] do
ProjTraversal.transform("../my_codebase/", transformation, opts)

Phoenix 1.4.x to 1.5.0 upgrade instructions

Phoenix 1.5 requires Elixir >= 1.7. Be sure your existing version is up to date by running elixir -v on the command line.

Install the new project generator

$ mix archive.uninstall phx_new
$ mix archive.install hex phx_new 1.5.0
r-brown / howto-install-jekyll_homebrew-rbenv.txt
Last active Jun 12, 2022
How to install Jekyll using Homebrew and rbenv
View howto-install-jekyll_homebrew-rbenv.txt
# install Homebrew
$ su ruby -e "$(curl -fsSL"
# show brew commands
$ brew help
# check current user
$ echo $(whoami)
# grant access to the folders
nkbt / .eslintrc.js
Last active Jun 30, 2022
Strict ESLint config for React, ES6 (based on Airbnb Code style)
View .eslintrc.js
"env": {
"browser": true,
"node": true,
"es6": true
"plugins": ["react"],
"ecmaFeatures": {
View gist:6443
# Video:
Hi everyone, I'm Chris Wanstrath.
When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But
then I took a few moments and thought, Wait, why? Why me? What am I supposed
to say that's interesting? Something about Ruby, perhaps. Maybe the
future of it. The future of something, at least. That sounds