Support more finegrained date-based sorting.

This commit is contained in:
Niels G. W. Serup 2020-08-30 18:15:39 +02:00
parent 81e536a856
commit 82cbbcea67
48 changed files with 51 additions and 51 deletions

View File

@ -1,6 +1,6 @@
file: youtube:0-h1Q8jkBto
title: 'DIKUrevy 2016: Banko Royale'
year: 2016
date: 201605
description: >
A very provincial James Bond parody. I co-wrote and co-produced this film. I
also had a small role as Fidel Castro in a lumberjack shirt.

View File

@ -1,6 +1,6 @@
file: youtube:OcEKcEg_TjU
title: 'BornHack 2018 - Big Banko: Scaling for the Elder Generation'
year: 2018
date: 201808
description: >
I gave a talk at BornHack about the OpenBanko project that I have been working
on with a couple of friends.

View File

@ -1,5 +1,5 @@
file: youtube:HI9sVHCBS0g
title: 'DIKUrevy 2017: Bosser'
year: 2017
date: 201705
description: >
A bit internal. I filmed and edited it.

View File

@ -1,5 +1,5 @@
file: extern:box-576p.ogv
title: Box
year: 2010
date: 2010
description: >
Very artistic.

View File

@ -1,5 +1,5 @@
file: extern:cola-1080p.ogv
title: Cola
year: 2009
date: 2009
description: >
Who would do such a thing?

View File

@ -1,5 +1,5 @@
file: extern:compufight-behind.ogv
title: 'Compufight: Behind the scenes'
year: 2009
date: 2009
description: >
A behind-the-scenes look at how the Compufight film was made.

View File

@ -1,5 +1,5 @@
file: extern:compufight-1080p.ogv
title: Compufight
year: 2009
date: 2009
description: >
Inspired by films.

View File

@ -1,5 +1,5 @@
file: extern:compumotion-1080p.ogv
title: Compumotion
year: 2008
date: 2008
description: >
The inspiration for the blockbuster film "Inception".

View File

@ -1,6 +1,6 @@
file: youtube:AfjJNauWV48
title: 'BornHack 2019 - Niels G. W. Serup: concieggs: An extensible IRC bot architecture with an attitude'
year: 2019
date: 201908
description: >
I gave a talk at BornHack about the concieggs project that I have been working
on with a couple of friends.

View File

@ -1,5 +1,5 @@
file: extern:crazychristmas-1080p.ogv
title: Crazy Christmas
year: 2007
date: 2007
description: >
I was very proud of the fact this film consists of 655 frames.

View File

@ -1,5 +1,5 @@
file: extern:creative-process-576p.ogv
title: The creative process of an artist
year: 2010
date: 2010
description: >
Everything in this film is a metaphor for something.

View File

@ -1,5 +1,5 @@
file: extern:dice-1080p.ogv
title: Dice
year: 2009
date: 2009
description: >
Very chaotic.

View File

@ -1,5 +1,5 @@
file: extern:easteregg-640w.ogv
title: Beware of the Easter Egg
year: 2007
date: 2007
description: >
This is probably a bit unrealistic.

View File

@ -1,5 +1,5 @@
file: youtube:z2rxerTXoCg
title: 'BornHack 2020 - Niels G. W. Serup - "Failed" Projects: Just Move On'
year: 2020
date: 202008
description: >
I gave a talk at BornHack about my failed projects.

View File

@ -1,6 +1,6 @@
file: extern:haj.webm
title: 'haj'
year: 2018
date: 201812
description: >
A short shark-infused santa movie I made. Watch out!

View File

@ -1,5 +1,5 @@
file: youtube:uc5CrT0R_Mc
title: 'DIKUrevy 2013: HCØ'
year: 2013
date: 201305
description: >
I co-wrote and acted in this fake commercial.

View File

@ -1,5 +1,5 @@
file: extern:ibm.webm
title: IBM Mainframe
year: 2014
date: 2014
description: >
I entered this film into an IBM competition.

View File

@ -1,6 +1,6 @@
file: youtube:P3a8tkivMy4
title: 'DIKUrevy 2013: Jagten på punchlinen'
year: 2013
date: 201305
description: >
20 minutes of puns and exploration. I co-starred in this fantastic endeavour.
This film was played during one of the breaks in our student revue.

View File

@ -1,5 +1,5 @@
file: youtube:I4nsVtLmYQ0
title: "DIKUrevy 2015: Ka' det fusioneres? Datalogi og matematik!"
year: 2015
date: 201505
description: >
A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:uHVWxgPbxs8
title: "DIKUrevy 2015: Ka' det fusioneres? GT og light cola!"
year: 2015
date: 201505
description: >
A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:5heliTbyzeA
title: "DIKUrevy 2015: Ka' det fusioneres? PC og Gentoo!"
year: 2015
date: 201505
description: >
A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:v5Nw8FxPTqY
title: "DIKUrevy 2015: Ka' det fusioneres? Preben og Fernando!"
year: 2015
date: 201505
description: >
A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,5 +1,5 @@
file: youtube:nWwtf3kzDwU
title: "DIKUrevy 2015: Ka' det fusioneres? Vim og Emacs!"
year: 2015
date: 201505
description: >
A spoof of a spoof. Debates current affairs. I filmed and edited.

View File

@ -1,6 +1,6 @@
file: youtube:x8ynd-LbaAs
title: 'DIKUrevy 2014: KEN'
year: 2014
date: 201405
description: >
A film devoted to the similarities between a dishwasher and a professor. I
filmed it and also had a small role.

View File

@ -1,5 +1,5 @@
file: youtube:62GFDUu3Lt0
title: 'DIKUrevy 2014: Kjolemand'
year: 2014
date: 201405
description: >
Just a silly film. I co-wrote it, co-filmed it and also had a cameo.

View File

@ -1,5 +1,5 @@
file: extern:lego-ved-eksamener.webm
title: LEGO ved eksamener
year: 2011
date: 2011
description: >
I built machines instead of preparing for exams.

View File

@ -1,5 +1,5 @@
file: extern:legoparty-720p.ogv
title: LEGO PARTY
year: 2007
date: 2007
description: >
Random LEGO stop motion.

View File

@ -1,5 +1,5 @@
file: extern:legoshow-640w.ogv
title: LEGO SHOW
year: 2006
date: 2006
description: >
Stop motion, but no plot.

View File

@ -1,5 +1,5 @@
file: youtube:vs4bso-i3qI
title: 'DIKUrevy 2017: MATRICEN'
year: 2017
date: 2017
description: >
Bad parody in Danish. I had a small role and helped film it.

View File

@ -1,5 +1,5 @@
file: extern:mobility-behind.ogv
title: 'Mobility: Behind the scenes'
year: 2008
date: 2008
description: >
A behind-the-scenes look at the production of the Mobility film.

View File

@ -1,5 +1,5 @@
file: extern:mobility-1080p.ogv
title: Mobility
year: 2008
date: 2008
description: >
Mobile phone tricks.

View File

@ -1,5 +1,5 @@
file: youtube:o_ndwJzJsJQ
title: 'DIKUrevy 2016: OBS'
year: 2016
date: 201605
description: >
A spoof of a Danish TV program. I produced this.

View File

@ -1,5 +1,5 @@
file: youtube:EVnrQhhCQD8
title: 'DIKUrevy 2017: Oldschool Mutant Ninja Hackers'
year: 2017
date: 201705
description: >
Directly from the nineties! I co-wrote the amazing lyrics, played one of the four hackers, and edited the film.

View File

@ -1,5 +1,5 @@
file: youtube:_6I9ptgEgac
title: 'DIKUrevy 2019: O(N)sen-banden'
year: 2019
date: 201906
description: >
I had a small role in this homage to a Danish film series.

View File

@ -1,5 +1,5 @@
file: extern:paper.webm
title: Paper
year: 2010
date: 2010
description: >
I can draw with my finger!

View File

@ -1,5 +1,5 @@
file: extern:paranoia-576p.ogv
title: Paranoia
year: 2010
date: 2010
description: >
It makes sense if you think about it.

View File

@ -1,5 +1,5 @@
file: youtube:-rw-PNrwqLo
title: 'DIKUrevy 2015: Ph.D.-livet'
year: 2015
date: 201505
description: >
Trying to lure in new Ph.D. students. I did a little of everything.

View File

@ -1,5 +1,5 @@
file: youtube:BR7bUlZ05Ek
title: 'DIKUrevy 2013: Pinte dataloger'
year: 2013
date: 201305
description: >
I co-wrote and acted in this fake commercial.

View File

@ -1,6 +1,6 @@
file: youtube:xREnjmFWayA
title: 'DIKUrevy 2012: Realtidshyperpipedims'
year: 2012
date: 201205
description: >
I was an actor in this. Fun fact: This film references the video game
"Portal", but I had not played the game at the time of filming.

View File

@ -1,6 +1,6 @@
file: youtube:TL0tDkgLGuk
title: 'DIKUrevy 2016: Lige om hjørnet'
year: 2016
date: 201602
description: >
Trying to lure in new people for the student revue. I wrote, filmed, and
edited it.

View File

@ -1,5 +1,5 @@
file: extern:robo-1080p.ogv
title: Robo
year: 2010
date: 2010
description: >
An ode to modern times.

View File

@ -1,6 +1,6 @@
file: extern:saks.webm
title: 'saks'
year: 2020
date: 202003
description: >
Judge for yourself.

View File

@ -1,5 +1,5 @@
file: extern:saltvspepper-1080p.ogv
title: Salt vs. Pepper
year: 2008
date: 2008
description: >
I should work for a special effects company.

View File

@ -1,5 +1,5 @@
file: youtube:Zm0afVWdN3c
title: 'DIKUrevy 2012: SCIENCE IT Patruljen 1'
year: 2012
date: 201205
description: >
I was an actor in this.

View File

@ -1,5 +1,5 @@
file: youtube:qCL0kbd6bNg
title: 'DIKUrevy 2013: SCIENCE IT Patruljen 2'
year: 2013
date: 201305
description: >
I was an actor in this and also contributed some puns.

View File

@ -1,5 +1,5 @@
file: extern:super-surveillance-576p.webm
title: Super Surveillance
year: 2011
date: 2011
description: >
A dystopic look at the future of boredom.

View File

@ -1,5 +1,5 @@
file: extern:testdraw-576p.ogv
title: Test draw
year: 2007
date: 2007
description: >
Very basic cartoon.

View File

@ -27,7 +27,7 @@ def load_settings(settings_file):
def load_media(media_file):
with open(media_file) as f:
c = yaml.load(f, Loader=yaml.FullLoader)
c['year'] = int(c['year'])
c['date'] = c['date']
c['ident'] = ident(media_file)
return c
@ -102,7 +102,7 @@ def youtube_video(file_src):
def generate_video_page(base_dir, out_dir, base_html, showing_html, media):
title = media['title']
year = media['year']
date = str(media['date'])
description = media['description'].rstrip()
name = media['ident']
video_dir = os.path.join(out_dir, name)
@ -121,7 +121,7 @@ def generate_video_page(base_dir, out_dir, base_html, showing_html, media):
html_inner = showing_html.format(
title=html.escape(title),
year=str(year),
year=date[:4],
description=html.escape(description),
video=video_html)
html_out = base_html.format(content=html_inner,
@ -145,7 +145,7 @@ def main():
media_files = [os.path.join(media_dir, media_file)
for media_file in os.listdir(media_dir)]
medias = [load_media(media_file) for media_file in media_files]
medias.sort(key=lambda m: (m['year'], m['ident']), reverse=True)
medias.sort(key=lambda m: (m['date'], m['ident']), reverse=True)
site_new_dir = setup_directory_structure(settings, base_dir, template_dir)
generate_index_page(site_new_dir, base_html, section_html, medias)