Skip to content

Instantly share code, notes, and snippets.

View monsieurnebo's full-sized avatar
🐈

Cyril Bonnet monsieurnebo

🐈
View GitHub Profile
@tomholford
tomholford / install_pg_gem.md
Last active June 13, 2024 06:43
Install postgresql gem `pg` on macOS

Installing pg gem on macOS

If you're trying to install the postgresql gem pg and it is failing with the following error message:

Installing pg 1.2.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: ~/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pg-1.2.3/ext
~/.rbenv/versions/3.0.0/bin/ruby -I ~/.rbenv/versions/3.0.0/lib/ruby/3.0.0 -r ./siteconf20210125-97201-pycpo.rb extconf.rb
@Potherca
Potherca / README.md
Last active May 29, 2024 10:57
The search for a Regex to match BEM CSS class-names

The search for a Regex to match BEM CSS class-names

TL;DR

Use this regular expression to match BEM class-names:

^\.[a-z]([a-z0-9-]+)?(__([a-z0-9]+-?)+)?(--([a-z0-9]+-?)+){0,2}$
@joepie91
joepie91 / js-tooling.md
Last active May 13, 2024 19:57
An overview of Javascript tooling

Getting confused about the piles of development tools that people use for Javascript? Here's a quick index of what is used for what.

Keep in mind that you shouldn't add tools to your workflow for the sake of it. While you'll see many production systems using a wide range of tools, these tools are typically used because they solved a concrete problem for the developers working on it. You should not add tools to your project unless you have a concrete problem that they can solve; none of the tools here are required.

Start with nothing, and add tools as needed. This will keep you from getting lost in an incomprehensible pile of tooling.

Build/task runners

Typical examples: Gulp, Grunt

@swyxio
swyxio / Gatsby-bootstrap-lifecycle.md
Last active April 1, 2022 11:19
Gatsby bootstrap lifecycle

Sequence of Gatsby's bootstrap lifecycle with links to source code as of v2.0.0

  1. open and validate gatsby-config (get-config-file.js) 1.5 load themes (swyx added this note July 2019)
  2. load plugins (load-plugins/index.js) from the list given in gatsby-config.js
  3. onPreBootstrap: runs onPreBootstrap if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9
@sebasten
sebasten / E32018.md
Last active February 12, 2024 22:02
Planning E3 2018

E3 2018

Vidéos de jeux (par date) | Vidéos de jeux (par ordre alphabétique) | Liens utiles | Une question, une remarque, un truc que j'ai oublié ? DM @netsabes

Le planning des confs au format .ics pour l'ajouter à votre 📆 agenda est ici.

Tous les horaires sont indiqués à l'heure de Paris.

⚠️ Quelques conseils de survie (parce que bon, c'est des jeux vidéo et on fait des blagues sur Twitter, mais c'est aussi du travail à des horaires pénibles) : évitez de perdre votre nuit à tout regarder en direct, ça ne sert pas à grand chose et au réveil on peut voir les mêmes vidéos. Si vous le faites quand même, évitez de manger trop gras, buvez de