Skip to content

Instantly share code, notes, and snippets.

View radoslawroszkowiak's full-sized avatar

Radosław Roszkowiak radoslawroszkowiak

View GitHub Profile
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.
>>> import lxml.html
>>> tree = lxml.html.fromstring("""<html>
... <body>
... <div id=yw1>
... <table id="x">
... <thead></thead>
... <tbody>
... <tr>
... <td>
... <table id="y">
import asyncio
import aiohttp
async def get_content(url):
response = await aiohttp.request('GET', url)
body = await response.read()
return body
async def main():
import logging
# setting up the logger
logger = logging.getLogger(__file__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter(
'%(asctime)s - %(levelname)s - %(message)s'
)
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: