Posts

Showing posts from February, 2021

Can't find the code you're looking for? Just Suggest a Snippet and I'll add it :)

Multi threading Python simple example

from multiprocessing import Pool def f(x): return x * x if __name__ == '__main__': with Pool(50) as p: print(p.map(f, [1, 2, 3, 2, 4, 5, 6, 7, 8, 9, 19]))

SNAPPED!

add space between lines of text HTML CSS

Use line height - css line-height: 0.7;

SNAPPED!

Popular posts from this blog

Append to a json file python

Setup Mailhog mail server on Ubuntu