Skip to content

Instantly share code, notes, and snippets.

View mariusbutuc's full-sized avatar
🌏

Marius Butuc mariusbutuc

🌏
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@mariusbutuc
mariusbutuc / add-dilute.md
Created September 17, 2021 12:25
Anything added dilutes everything else.
               MMM.           .MMM
               MMMMMMMMMMMMMMMMMMM
               MMMMMMMMMMMMMMMMMMM      _________________________________________
              MMMMMMMMMMMMMMMMMMMMM    |                                         |
             MMMMMMMMMMMMMMMMMMMMMMM   | Anything added dilutes everything else. |
            MMMMMMMMMMMMMMMMMMMMMMMM   |_   _____________________________________|
            MMMM::- -:::::::- -::MMMM    |/
             MM~:~ 00~:::::~ 00~:~MM
 .. MMMMM::.00:::+:::.00::MMMMM ..
@mariusbutuc
mariusbutuc / xcode_reset.sh
Last active June 3, 2020 19:30
Fix "No Xcode or CLT version detected!"
# > node-gyp rebuild
#
# No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
#
# No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
#
# No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
#
# gyp: No Xcode or CLT version detected!
# gyp ERR! configure error
@mariusbutuc
mariusbutuc / josevalim_love.md
Created October 9, 2019 13:19
Inspired by @josevalim's love for the elixir-lang/elixir community

❤️ 💚 💙 💛 💜

@mariusbutuc
mariusbutuc / 10-lessons-erlang.md
Last active July 17, 2020 06:54
10 Lessons from a Decade with Erlang

10 Lessons from a Decade with Erlang [↗][source]

  1. Higher-order Constructs

    Use higher-order constructs (libraries, frameworks, tools) instead of building everything from scratch. If there is no higher-order construct yet, build one.

  2. Opaque Data Structures

    Use Opaque Data Structures to represent your entities.

@mariusbutuc
mariusbutuc / quote.txt
Created July 5, 2018 16:13 — forked from OnesimusUnbound/quote.txt
Programming Quotes
[T]he difference between a bad programmer and a
good one is whether he considers his code or his
data structures more important. Bad programmers
worry about the code. Good programmers worry about
data structures and their relationships.
-- Linus Torvalds
~~~
Clarity and brevity sometimes are at odds.
When they are, I choose clarity.
-- Jacob Kaplan-Moss
@mariusbutuc
mariusbutuc / slack-up.md
Created March 2, 2018 16:01
Template for daily slack-ups.

:slack:-up:

Yesterday

Today

@mariusbutuc
mariusbutuc / gist:5996261965430a3590865c930a53ab92
Created January 4, 2018 19:37 — forked from twosixcode/gist:1988097
Make "Paste and Indent" the default paste in Sublime Text 2
// swap the keybindings for paste and paste_and_indent
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
@mariusbutuc
mariusbutuc / RecalculateSellectedCells.gs
Created November 29, 2017 13:46 — forked from katz/RecalculateSellectedCells.gs
Google Apps Script to re-calculate selected cells in Sheets
/**
* @OnlyCurrentDoc Limits the script to only accessing the current spreadsheet.
*/
/**
* Adds a custom menu with items to show the sidebar and dialog.
*
* @param {Object} e The event parameter for a simple onOpen trigger.
*/
@mariusbutuc
mariusbutuc / elixir_function_headers.sh
Created October 31, 2017 17:31
Elixir suggests using function headers when declaring default values.
** (CompileError) lib/spreadsheet/functions.ex:340: definitions with multiple clauses and default values require a header. Instead of:
def foo(:first_clause, b \\ :default) do ... end
def foo(:second_clause, b) do ... end
one should write:
def foo(a, b \\ :default)
def foo(:first_clause, b) do ... end
def foo(:second_clause, b) do ... end