Skip to content

Instantly share code, notes, and snippets.

View bdubaut's full-sized avatar
🧑‍🔬

Bertrand Dubaut bdubaut

🧑‍🔬
View GitHub Profile
@bdubaut
bdubaut / keybase.md
Created February 25, 2021 20:59
Keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@bdubaut
bdubaut / Dockerfile Elixir
Last active July 17, 2020 02:44
Elixir/Phoenix docker-compose setup
FROM elixir:1.5.3-alpine
WORKDIR /app
ADD . /app
# Install hex & rebar
RUN mix local.hex --force && \
mix local.rebar --force && \
mix hex.info
@bdubaut
bdubaut / sequel.rb
Created October 31, 2017 13:09
Sequel tips & tricks
# Selecting only column values instead of the whole table
# One column
MyObject.select_map(:column_name) # > [value1, value2, ...]
# Multiple columns
MyObject.select_map([:column1, :column2]) # > [[value1, value2], [value 3, value4], ...]
# And you can have `.where` statements before
MyObject.where(something: true).select_map(:column_name) # > [value1, value2, ...]
@bdubaut
bdubaut / cult_of_ignorance.md
Created October 13, 2016 09:08 — forked from conspect/cult_of_ignorance.md
A Cult Of Ignorance, Isaac Asimov

It's hard to quarrel with that ancient justification of the free press: "America's right to know." It seems almost cruel to ask, ingeniously, "America's right to know what, please? Science? Mathematics? Economics? Foreign languages?"

None of those things, of course. In fact, one might well suppose that the popular feeling is that Americans are a lot better off without any of that tripe.

There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way throughout political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."

Politicians have routinely striven to speak the language of Shakespeare and Milton as ungrammaticaly as possible in order to avoid offending their audiences by appearing to have gone to school. Thus, Adlai Stevenson, who incautiously allowed intelligence and learning and wit to peep out of his speeches, found the American people