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
rroszkowiak@RR-T460p:~/myfolder/e2e-storage-test (yarn-lock) $ ng e2e | |
** NG Live Development Server is running on http://localhost:4200. ** | |
Hash: b322fd8016d9bf83307a | |
Time: 9340ms | |
chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 426 kB {4} [initial] [rendered] | |
chunk {1} main.bundle.js, main.bundle.js.map (main) 23.6 kB {3} [initial] [rendered] | |
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 10.3 kB {4} [initial] [rendered] | |
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 3.53 MB [initial] [rendered] | |
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered] | |
webpack: Compiled successfully. |
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
>>> import lxml.html | |
>>> tree = lxml.html.fromstring("""<html> | |
... <body> | |
... <div id=yw1> | |
... <table id="x"> | |
... <thead></thead> | |
... <tbody> | |
... <tr> | |
... <td> | |
... <table id="y"> |
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
import asyncio | |
import aiohttp | |
async def get_content(url): | |
response = await aiohttp.request('GET', url) | |
body = await response.read() | |
return body | |
async def main(): |
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
import logging | |
# setting up the logger | |
logger = logging.getLogger(__file__) | |
logger.setLevel(logging.INFO) | |
formatter = logging.Formatter( | |
'%(asctime)s - %(levelname)s - %(message)s' | |
) |
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 log_execution(func): | |
""" | |
The time measuring and logging decorator. | |
""" | |
@functools.wraps(func) | |
def _inner(self, *args, **kwargs): | |
""" | |
Proxy, inner function of the log_execution decorator. | |
""" | |
try: |