Skip to content

Instantly share code, notes, and snippets.

View quimcalpe's full-sized avatar

Quim Calpe quimcalpe

View GitHub Profile

Keybase proof

I hereby claim:

  • I am quimcalpe on github.
  • I am quimcalpe (https://keybase.io/quimcalpe) on keybase.
  • I have a public key whose fingerprint is 3B1A 0BAD B543 3E56 8751 F906 AA28 28C3 92AE 10FB

To claim this, I am signing this object:

@quimcalpe
quimcalpe / gist:7626075
Last active May 28, 2023 16:41
Ansi Tables on console
var ansi = require("ansi");
var cursor = ansi(process.stdout);
var colors = [
"white", "black", "blue", "cyan", "green", "magenta", "red", "yellow", "grey",
"brightBlack", "brightRed", "brightGreen", "brightYellow", "brightBlue", "brightMagenta", "brightCyan", "brightWhite"
];
var styles = [ "bold", "italic", "underline", "inverse" ];
colors.forEach( function (color) {
@quimcalpe
quimcalpe / player.rb
Last active December 20, 2015 10:09
RubyWarrior intermediate epic mode
##
# No custom level tricks
#
# Total Score: 804 + 181 = 985
# Your average grade for this tower is: S
#
# Level 1: S
# Level 2: A
# Level 3: S
# Level 4: S
@quimcalpe
quimcalpe / player.rb
Last active December 20, 2015 08:59
RubyWarrior beginner epic mode
##
# No custom level tricks
#
# Total Score: 544 + 107 = 651
# Your average grade for this tower is: S
#
# Level 1: S
# Level 2: S
# Level 3: S
# Level 4: S