Skip to content

Instantly share code, notes, and snippets.

View Nargonath's full-sized avatar

Jonas Pauthier Nargonath

View GitHub Profile
@Nargonath
Nargonath / git.md
Last active September 18, 2020 06:12
Gathering of Git knowledge

Alias

  • git config --global alias.fwl "push --force-with-lease"
  • git config --global alias.rh "reset HEAD"
  • git config --global alias.pr "pull --rebase"
  • git config --global alias.cd "checkout develop"
  • git config --global alias.amd "commit --amend"
  • git config --global alias.amdne "commit --amend --no-edit"
  • git config --global alias.amda "commit -a --amend"
  • git config --global alias.amdane "commit -a --amend --no-edit"
@Nargonath
Nargonath / packages-list.md
Last active July 22, 2017 12:29
Npm packages for beautiful CLI
@Nargonath
Nargonath / bread-cookbook.md
Last active July 23, 2017 21:13
Cook log of my sourdough bread testing

Inspiration

Alex French guy cooking

Water test

To pass the water test you have to take 2 tablespoons of your sourdough starter and feed it 100g of bread flour and 100g of water. Make it rest in a warm and dark place for about 4h and it should be able to pass the test.

First try

Ingredients

@Nargonath
Nargonath / keymap_ngt.c
Created June 8, 2017 13:08
TMK Firware keyboard layout
#include "keymap_common.h"
/*
* SpaceFN
* http://geekhack.org/index.php?topic=51069.0
*/
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap 0: Default Layer => HHKB ISO AZERTY
* ,-----------------------------------------------------------.
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| )| =|Backsp |
@Nargonath
Nargonath / css-knowledge.md
Last active March 18, 2020 17:46
Used to regroup knowledge about CSS language to use as a fallback when having memory loss CSS-wise.

Calculate selectors priority/specificity

The priority of a selector can be expressed as a list of 4 digits: 0,0,0,0.

Starting from the right:

  • the first digit is the number of elements and pseudo-elements in the selector.
  • The second is the number of classes, attributes and pseudo-classes.
  • The third is the number of ID elements.
  • The last one if there is inline style property.

As an example: