Skip to content

Instantly share code, notes, and snippets.

@nandastone
nandastone / 1-1.js
Last active December 1, 2022 08:02
1-1
import fs from "fs";
const input = fs.readFileSync('./input.txt').toString()
const elves = input.split(/\n\s*\n/);
const calories = elves
// Split each elf's list of foods (new lines) and sum into the total calories for all their foods.
.map(
(elf) =>
elf
@nandastone
nandastone / curl.md
Created January 24, 2020 04:20 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@nandastone
nandastone / africa.md
Last active March 31, 2022 00:34
Vaishnava Calendar Locations

Cairo, Egypt

Timezone: Africa/Cairo
Location created: ✅
Events created: ✅

Lagos, Nigeria

Timezone: Africa/Lagos
Location created: ✅