Skip to content

Instantly share code, notes, and snippets.

@govorunov
govorunov / parallel_apply.py
Last active June 15, 2023 20:44
Parallelize Pandas apply over multiple workers using Joblib.
from joblib import Parallel, delayed, effective_n_jobs
import pandas as pd
def gen_even_slices(n, n_packs, *, n_samples=None):
"""Generator to create n_packs slices going up to n.
Parameters
----------
n : int
n_packs : int
@antiops
antiops / pixieset-scrape.js
Created November 1, 2020 04:16
pixieset.com dumper
/* pixieset.com full size image scraper
*
* Rips all images in highest quality
*
* To use scroll to the very bottom of the album and press F12 then paste the below snippet in and press enter.
* The full file list will be copied to your clipboard afterwards. You can use jdownloader to easily download the full list.
*/
(() => {
const data = document.querySelectorAll('.masonry-brick img')
@jmpinit
jmpinit / .gitignore
Last active June 14, 2022 17:30
gitignore file for KiCad projects
# Reports
*.rpt
# CPL data generated from PCB
*.pos
# KiCad backup
*.bak
*.bck
*.kicad_pcb-bak
@MichaelCurrie
MichaelCurrie / Dropzone with Python 3
Last active December 14, 2023 10:19
Drag-and-drop upload files, via JavaScript, to a simple Python 3 HTTP server
#Drag-and-drop upload files, via JavaScript, to a simple Python 3 HTTP server