Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# Copyright 2023, François Revol <revol@free.fr>
# MIT license
#
# csv2ics: convert a sensible schedule table to an icalendar program
# Initially wrote for https://2023.eurobsdcon.org/program/
import csv
from datetime import datetime, timedelta
import pytz
@mmuman
mmuman / voyages-sncf-resa-href.php
Last active August 29, 2015 14:21
generates urls to voyages-sncf.com to book trains with prefilled form items
<?php
/*
* voyages-sncf.php - generates urls to voyages-sncf.com with prefilled form items.
*
* Copyright 2011, Francois Revol, revol@free.fr.
* Distributed under the terms of the MIT License.
*/
/*
@mmuman
mmuman / reorder-patch
Last active August 29, 2015 14:11 — forked from jlebar/reorder-patch
#!/usr/bin/env python
"""Re-order the files in a patch according to a set of rules.
Input is accepted on stdin, and written to stdout.
Usage: cat patch | reorder-patch > reordered-patch
"""