From e082f8bca8ac4c14c4ec3967a817b5059be6f7ad Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 19 Jul 2014 10:02:50 +0200 Subject: [PATCH] pycon configuration --- pycon14/__init__.py | 108 ++++++++++++++++++++++++++++++ pycon14/artwork/intro-hd.svg | 115 ++++++++++++++++++++++++++++++++ pycon14/artwork/intro.svg | 125 +++++++++++++++++++++++++++++++++++ 3 files changed, 348 insertions(+) create mode 100644 pycon14/__init__.py create mode 100644 pycon14/artwork/intro-hd.svg create mode 100644 pycon14/artwork/intro.svg diff --git a/pycon14/__init__.py b/pycon14/__init__.py new file mode 100644 index 0000000..c9fde39 --- /dev/null +++ b/pycon14/__init__.py @@ -0,0 +1,108 @@ +#!/usr/bin/python +# -*- coding: UTF-8 -*- + +# URL to Schedule-XML +scheduleUrl = 'https://ep2014.europython.eu/schedule.frab.xml' + +# For (really) too long titles +titlemap = { + +} + +def pyconFrames(): + givenFrame = 0 + + frames = 168 + for i in range(0, frames): + givenFrame += 1 + yield ( + ('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)), + ('text', 'style', 'opacity', 0), + ) + + frames = 16 + for i in range(0, frames): + givenFrame += 1 + yield ( + ('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)), + ('text', 'style', 'opacity', "%.4f" % easeLinear(i, 0, 1, frames)), + ) + + frames = 113 + for i in range(0, frames): + givenFrame += 1 + yield ( + ('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)), + ('text', 'style', 'opacity', 1), + ) + + frames = 14 + for i in range(0, frames): + givenFrame += 1 + yield ( + ('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)), + ('text', 'style', 'opacity', "%.4f" % easeLinear(i, 1, -1, frames)), + ) + + frames = 66 + for i in range(0, frames): + givenFrame += 1 + yield ( + ('bg', 'attr', '{http://www.w3.org/1999/xlink}href', "given-frames/frame%04d.png" % (givenFrame)), + ('text', 'style', 'opacity', 0), + ) + +def debug(): + render( + 'intro.svg', + '../intro.dv', + pyconFrames, + { + '$id': 93, + '$title': 'Deploying and managing FreeBSD jails with mr.awsome, fabric and ansible', + '$subtitle': '', + '$personnames': 'tomster' + } + ) + + # render( + # 'outro.svg', + # '../outro.dv', + # outroFrames + # ) + + # render('pause.svg', + # '../pause.dv', + # pauseFrames + # ) + +def tasks(queue): + # iterate over all events extracted from the schedule xml-export + for event in events(): + + # generate a task description and put them into the queue + queue.put(( + 'intro.svg', + str(event['id'])+".dv", + introFrames, + { + '$id': event['id'], + '$title': event['title'], + '$subtitle': event['subtitle'], + '$personnames': event['personnames'] + } + )) + + # # place a task for the outro into the queue + # queue.put(( + # 'outro.svg', + # 'outro.dv', + # outroFrames + # )) + + # # place the pause-sequence into the queue + # queue.put(( + # 'pause.svg', + # 'pause.dv', + # pauseFrames + # )) diff --git a/pycon14/artwork/intro-hd.svg b/pycon14/artwork/intro-hd.svg new file mode 100644 index 0000000..a6c6dfd --- /dev/null +++ b/pycon14/artwork/intro-hd.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + Deploying and managing FreeBSD jails with mr.awsome, fabric and ansible Tom Lazar next + + diff --git a/pycon14/artwork/intro.svg b/pycon14/artwork/intro.svg new file mode 100644 index 0000000..241c482 --- /dev/null +++ b/pycon14/artwork/intro.svg @@ -0,0 +1,125 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + $title next $personnames + +