Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonas Pauthier Nargonath

View GitHub Profile
@Nargonath
Nargonath / git.md
Last active Sep 18, 2020
Gathering of Git knowledge
View git.md

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 / bread-cookbook.md
Last active Jul 23, 2017
Cook log of my sourdough bread testing
View bread-cookbook.md

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 Jun 8, 2017
TMK Firware keyboard layout
View keymap_ngt.c
#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 Mar 18, 2020
Used to regroup knowledge about CSS language to use as a fallback when having memory loss CSS-wise.
View css-knowledge.md

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:

You can’t perform that action at this time.