Skip to content
Permalink
Browse files
Stash commit
  • Loading branch information
dubslow committed Nov 9, 2015
1 parent 363207b commit 80ab2de6f57a505e08043a9d8b6b5d425bc5eb10
Showing with 17 additions and 1 deletion.
  1. 0 fdb/__init__.py
  2. +15 −0 fdb/fdb.py
  3. +2 −1 website/html/template.html
Empty file.
@@ -0,0 +1,15 @@
#! /usr/bin/env python3

import re

composite = re.compile(r' <a href="index.php\?id=([0-9]+?)"><font color="#002099">[0-9.]+?</font></a><sub>&lt;')
smallfact = re.compile(r' <a href="index.php\?id=[0-9]+?"><font color="#000000">([0-9^]+?)</font></a>')
largefact = re.compile(r' <a href="index.php\id=([0-9]+?)"><font color="#000000">[0-9]+?[.]{3}[0-9]{2}</font></a><sub>&lt;')
composite = re.compile(r'= <a.+<font color="#002099">[0-9.]+</font></a><sub>&lt;(?P<C>[0-9]+)')
smallfact = re.compile(r'(?:<font color="#000000">)([0-9^]+)(?:</font></a>)(?!<sub>)')
largefact = re.compile(r'(?:<font color="#000000">[0-9^.]+</font></a><sub>&lt;)([0-9]+)')
stuff = re.compile('<td bgcolor="#BBBBBB">n</td>\n<td bgcolor="#BBBBBB">Digits</td>\n<td bgcolor="#BBBBBB">Number</td>\n</tr><tr><td bgcolor="#DDDDDD">.{1,3}hecked</td>\n<td bgcolor="#DDDDDD">(?P<index>[0-9]+)</td>\n<td bgcolor="#DDDDDD">(?P<size>[0-9]+) <a href="index.php\\?showid=(?P<id>[0-9]+)">\\(show\\)')
created = re.compile('([JFMASOND][a-z]{2,8}) ([0-9]{1,2}), ([0-9]{4})') # strftime('%d', strptime(month, "%B"))
#oldpage = re.compile('(<tr> <td>([0-9]+?)</td> <td>([0-9]+?)</td>.*?<td>)[0-9A-Za-z_ ]*?</td> </tr>') # Kept for historical purposes
#oldjson = re.compile(r'(\[([0-9]+?), ([0-9]+?), ([0-9]+?), .*?)[0-9A-Za-z_ ]*?"\]') # Ditto
largenum = re.compile(r'<td align="center">(([0-9\s]|(<br>))+?)</td>')
@@ -26,7 +26,8 @@
color: #000000;
background-color: #05E9FF;
border-collapse: collapse;
font-size: 95%; }}
font-size: 95%;
margin: 0 auto; }}
td {{ white-space: nowrap; }}
img.center {{ display: block;
clear: both;

0 comments on commit 80ab2de

Please sign in to comment.