Skip to content

Instantly share code, notes, and snippets.

View ntourne's full-sized avatar

Nicolas Tourne ntourne

View GitHub Profile
@ntourne
ntourne / gist:a5a4a9c6f1e094a49d36fbcacbd82a58
Last active December 26, 2022 00:13
rock-paper-scissors-game.js
// It asks a user to pick an option and returns the correct value
// ("Piedra", "Papel" or "Tijera") or an "Error"
function getOptionPicked(playerName) {
const option = prompt(
`Seleccione opción para el ${playerName}:\n1: Piedra\n2: Papel\n3: Tijera`
);
let pickedOption = null;
switch (option) {
case "1":
@ntourne
ntourne / .prettierrc
Created January 6, 2021 20:19
Super simple prettier config file
{
"singleQuote": true,
"tabWidth": 4,
"useTabs": false
}

Keybase proof

I hereby claim:

  • I am ntourne on github.
  • I am nicotourne (https://keybase.io/nicotourne) on keybase.
  • I have a public key ASB5NtE9bd0QHmnjxMdjvOdKJ5i9CljbK0mpDm0cntgoYAo

To claim this, I am signing this object:

@ntourne
ntourne / .editconfig
Created May 15, 2017 20:17
Basic setup of .editconfig
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true