This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assumption is that at this point, imports and keypad initialization have been done | |
timeout = 15 # Seconds, until entry is reset | |
entry_begin = 0 # Timestamp when entry began | |
sequence = "" # Entrysequence with keys appended | |
pin = "1234" | |
idle_time = 0.05 # 50 ms, should work fine | |
while True: | |
now = time.time() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# $1 = Big repo | |
# $2 = Subfolder to split | |
# $3 = New organization | |
# $4 = New reponame | |
if [ $# -ne 4 ]; then | |
echo "illegal number of parameters". | |
echo- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.. list-table:: | |
:widths: auto | |
{% for talk in talks %} | |
* - mainhall | |
- Lightning Talk | |
- {{ talk.author }} | |
- `Website <{{ talk.websiteurl }}>`_ | |
- `{{ talk.title }} </pdf/lightningtalks/{{ talk.pdfname }}>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def ical_import_filter(original, log): | |
summary = original.summary | |
stuff = summary.split('\n', maxsplit=5) | |
# if not(stuff[0].startswith('Author:') and stuff[1].startswith('Type:') and stuff[2].startswith('Topics:') and stuff[3].startswith('Keywords:') and stuff[4].startswith('Abstract')): | |
# log(str(summary.replace('\n', '@@@\n')), lvl=hilight) | |
data = { | |
'author': [], | |
'event_type': 'Unknown', | |
'event_id': 'Unknown', |