Skip to content

Instantly share code, notes, and snippets.

View jaguilar87's full-sized avatar

Jordi Aguilar jaguilar87

  • Gartner Digital Markets
  • Barcelona
  • 13:25 (UTC +02:00)
View GitHub Profile
const symbols = {
info: ['ℹ', 'i'],
success: ['✔', '√'],
warning: ['!', '!'],
error: ['✖', 'x'],
bullet: ['⁎', '*'],
build: ['🛠', '* '],
in: ['📥', '>> '],
out: ['📥', '<< '],
redirect: ['↩', '><'],
@jaguilar87
jaguilar87 / server-sent_events.html
Last active October 23, 2018 12:06
A test for Server Sent Events
<html>
<head>
<title>SSE example</title>
</head>
<body>
<h2>Messages:</h2>
<pre id="response"></pre>
<input id="message"> <button id="btnSubmit">Broadcast</button>
@jaguilar87
jaguilar87 / pairings.js
Last active September 8, 2022 07:50
Pairing Generator
// Parameters
const players = [
"Jordi",
"Pedro",
"Pau",
"Sergio",
"Andrés",
"Antonio",
];
const nOfRounds = 5;