Skip to content

Instantly share code, notes, and snippets.

@remydagostino
remydagostino / launcher_idea.bat
Created May 2, 2018 19:09
Dani's powerpoint extravaganza
POWERPNT.exe /s "<name of file goes here>.ppt"
@remydagostino
remydagostino / keybase.md
Created October 7, 2020 06:04
keybase.md

Keybase proof

I hereby claim:

  • I am remydagostino on github.
  • I am rdagostino (https://keybase.io/rdagostino) on keybase.
  • I have a public key ASD5nmQlyySYoW4O0t4CzAotq4NrH-bmAuAH5IR2GfWsAQo

To claim this, I am signing this object:

@remydagostino
remydagostino / beverage-buddy.js
Created October 26, 2020 04:08
Social Beverage Programme
// Usage: node matcher.js people-list.txt 2
const people = require('fs').readFileSync(process.argv[2]).toString().split('\n');
const weekNum = Number(process.argv[3]);
const pairs = people
.map((person, index) => people[(index + weekNum) % people.length])
.map((person, index, list) => {
const match = list[list.length - index - 1];
if (match === person) {
@remydagostino
remydagostino / beverage-buddies.js
Created December 24, 2020 02:29
Beverage Buddies V2
// Usage: node beverage-buddies.js people-list.txt history.txt showPairingStamped
const { readFileSync } = require('fs');
const process = require('process');
function main(peopleFile, historyFile, command) {
const peopleLines = removeComments(readFileSync(peopleFile).toString().split('\n'));
const historyLines = readFileSync(historyFile).toString().split('\n');
const now = Date.now();