Other ideas:
- Multi-dimensional rolling window (investigate the memory issues of this approach):
- A simple Python loop or list comprehension
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Load the JS file --> | |
<script src="https://cdn.jsdelivr.net/npm/@gitgraph/js"></script> | |
</head> | |
<body> | |
<!-- DOM element in which we'll mount our graph --> | |
<div id="graph-container"></div> |
Other ideas:
# coding: utf-8 | |
# | |
# fuckda.py - Uso de certificados de la FNMT con Python | |
# | |
# Autor: Juan Luis Cano Rodríguez <[email protected]> | |
# | |
# Instrucciones: | |
# | |
# 1. Exportar certificado (CERTIFICADO.p12) | |
# https://www.sede.fnmt.gob.es/preguntas-frecuentes/exp-imp-y-elim-de-certificados |
from distributed import Client, as_completed | |
from dask import delayed | |
from time import sleep | |
import numpy as np | |
from pprint import pprint | |
# Define a time-consuming task | |
def foo(n): | |
print("Starting the {:d}-second task".format(n)) |
In python, you have floats and decimals that can be rounded. If you care about the accuracy of rounding, use decimal type. If you use floats, you will have issues with accuracy.
All the examples use demical types, except for the original value, which is automatically casted as a float.
To set the context of what we are working with, let's start with an original value.
1. go to https://sslvpn.demo.sonicwall.com/cgi-bin/welcome | |
2. log in with demo/password | |
3. click on NetExtender icon, this will download a tar.gz with the client | |
4. sudo ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/libssl.so.6 | |
5. sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.6 | |
6. un-tar the client, make install script executable and launch install |
$ uname -r
from progress.bar import Bar | |
bar = Bar('Processing', max=20) | |
for i in range(20): | |
# Do some work | |
bar.next() | |
bar.finish() |