Skip to content

Instantly share code, notes, and snippets.

View NXML's full-sized avatar
🧿
Focusing

NXML NXML

🧿
Focusing
View GitHub Profile
# Advent of Code template by @MathisHammel
import requests
from aoc_secrets import AOC_COOKIE # Put your session cookie in this variable
YEAR = '2022'
def get_input(day):
req = requests.get(f'https://adventofcode.com/{YEAR}/day/{day}/input', headers={'cookie':'session='+AOC_COOKIE})
return req.text
@coopermaruyama
coopermaruyama / find-appointment.js
Created September 16, 2016 22:41
Finding an Appointment (JS)
// The businesspeople among you will know that it's often not easy to find an
// appointment. In this kata we want to find such an appointment automatically.
// You will be given the calendars of our businessperson and a duration for the
// meeting. Your task is to find the earliest time, when every businessperson is
// free for at least that duration.
//
// Example Schedule:
//
// Person | Meetings
// -------+-----------------------------------------------------------
@noelboss
noelboss / git-deployment.md
Last active August 12, 2025 18:16
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.