Skip to content

Instantly share code, notes, and snippets.

View mauritsvdvijgh's full-sized avatar

Maurits van der Vijgh mauritsvdvijgh

View GitHub Profile
@mauritsvdvijgh
mauritsvdvijgh / Dockerfile
Created September 23, 2018 13:02
Dockerfile for ytdl-webserver alpine dev/build stage
FROM alpine:3.8 as base
WORKDIR /home/app
EXPOSE 3000
CMD [ "npm", "start" ]
RUN apk add --update --no-cache \
python3 \
ffmpeg \
nodejs \
import time
import requests
url_format = "https://permanent-redirect.xyz/pages/{}"
last_epoch = 0
while True:
epoch = int(time.time())
@mauritsvdvijgh
mauritsvdvijgh / vraag15.py
Last active September 3, 2015 09:50
Vraag 15 Tweakers Devv Answer Contest
import itertools
'''
4 * € 2,-
2 * € 1,-
8 * € 0,50
1 * € 0,20
4 * € 0,10
3 * € 0,05
Hoeveel unieke bedragen kun je maken met min. 1 en max. 5 munten?