Skip to content

Instantly share code, notes, and snippets.

@gesposito
gesposito / keybase.md
Created July 16, 2020 07:21
keybase.md

Keybase proof

I hereby claim:

  • I am gesposito on github.
  • I am gesposito (https://keybase.io/gesposito) on keybase.
  • I have a public key ASDoMoGZQuRswRBbaUPaVuBIG0E-0O9iIno56GznWfvRkgo

To claim this, I am signing this object:

@gesposito
gesposito / config.yml
Last active February 27, 2020 15:50
How to reset @circleci caches?
[...]
set_cache_version:
&set_cache_version # https://discuss.circleci.com/t/cannot-use-circle-yml-environment-variables-in-cache-keys/10994/8
run:
name: Setup $CACHE_VERSION Environment Variable
# Adds an extra option for forcing cache cleaning (from ENVVARs)
command: |
echo "$CACHE_VERSION" > cache-version.txt
[...]
- *set_cache_version
const reducer = (state = { counter: 0 }, action) => {
switch (action) {
case "INC":
return { counter: state.counter + 1 };
case "INC":
return { counter: state.counter - 1 };
default:
return state;
}
}
@gesposito
gesposito / regions.json
Last active April 3, 2018 13:24
regions.json
[
{ "value": "1", "label": "Abruzzo" },
{ "value": "2", "label": "Basilicata" },
{ "value": "3", "label": "Calabria" },
{ "value": "4", "label": "Campania" },
{ "value": "5", "label": "Emilia Romagna" },
{ "value": "6", "label": "Friuli Venezia Giulia" },
{ "value": "7", "label": "Lazio" },
{ "value": "8", "label": "Liguria" },
{ "value": "9", "label": "Lombardia" },