$ cat reed/content.py
"""Provide content handling."""
import io
import deal
import readability
from bs4 import BeautifulSoup as Bs
from pdftotext import PDF
This file contains hidden or 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
from typing import Callable, Any | |
import functools | |
import traceback | |
def handle_exceptions(func: Callable[..., Any]) -> Callable[..., Any]: | |
""" | |
Decorate a function to catch and handle exceptions by returning a detailed error message. | |
Args: |
Click to expand!
Your detailed text here.
This file contains hidden or 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
{ | |
"version": "2.6", | |
"groups": [ | |
{ | |
"name": "Watts to Joules/sec", | |
"urls": [ | |
"factoriolab.github.io", | |
"wiki.factorio.com" | |
], | |
"substitutions": [ |
This file contains hidden or 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
{ | |
"black": { | |
"neutral": { | |
"hex": "#282828", | |
"standard": 0, | |
"8bit": 235, | |
"ansi_fg": "\u001b[38;2;40;40;40m", | |
"ansi_bg": "\u001b[48;2;40;40;40m" | |
} | |
}, |
This file contains hidden or 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
""" | |
Calculate 12 week periods in a year that have the fewest holidays. | |
""" | |
import argparse | |
from datetime import date, datetime, timedelta | |
from pprint import pprint as print | |
from typing import List, Tuple | |
from pandas.tseries.holiday import ( |
Question | Answer |
---|---|
What are you using the system for? | Mostly gaming. The hardware intensive games I play are "simulation" games (think Factorio) that are more CPU bound than GPU bound. I do not play the latest marquee games with the biggest and baddest graphics etc. |
What's your budget? | $1300-$2000, although I doubt I need to go to the higher end of that range |
Firstly, what is <details>
<summary>
?
The HTML Details Element (
<details>
) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the<summary>
element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.
This file contains hidden or 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
ABC.DEF.GHI.JKL.MNO.PQRS.TUV.WXYZabc.def.ghi.jkl.mno.pqrs.tuv.wxyz | |
¢ ſß ΓΛΔ αδιλμξ КУЗЯ эльф язычникfloat il1[]={1-2/3.4,5+6=7/8%90}; | |
1234567890 ,._-+= >< ¯-¬_ >~–÷+×<{}[]()<>`+-=$*/#_%^@\&|~?'" !,.;: | |
!iIlL17|¦ coO08BbDQ $5SZ2zsz 96G&dbqp E3 g9q CGQ vvw VVW /V <= >=÷ |
You get a lot of command-line tools just for having python 3 installed.
$ # despite the name, compares files found in two _directories_ (non-recursive)
$ python3 -m filecmp dumbpw/ tests/
diff dumbpw/ tests/
Only in dumbpw/ : ['candidate.py', 'charspace.py', 'cli.py', 'pwgen.py']
Only in tests/ : ['test_charspace', 'test_pwgen']
Differing files : ['__init__.py']
$ # print a calendar
NewerOlder