Skip to content

Instantly share code, notes, and snippets.

@austinzh
austinzh / jmh.gradle
Last active November 8, 2024 03:01 — forked from jzillmann/jmh.gradle
Integrating JMH into gradle
// Adds JMH integration to a project.
// Considering putting this file into gradle/ folder and include it with:
// apply from: rootProject.file('gradle/jmh.gradle')
sourceSets {
jmh {
compileClasspath += sourceSets.test.runtimeClasspath
runtimeClasspath += sourceSets.test.runtimeClasspath
}
}
@austinzh
austinzh / untitled86.ipynb
Last active August 5, 2021 01:18
shared_embedding.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@austinzh
austinzh / shared_embedding.ipynb
Last active August 5, 2021 01:11
shared_embedding.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@austinzh
austinzh / tf_arrow_model_training.py
Created June 28, 2021 16:13 — forked from BryanCutler/tf_arrow_model_training.py
TensorFlow Keras Model Training Example with Apache Arrow Dataset
from functools import partial
import multiprocessing
import os
import socket
import sys
from sklearn.preprocessing import StandardScaler
import numpy as np
import pandas as pd
@austinzh
austinzh / dead_lock.md
Last active September 27, 2019 01:29
Dead lock when mix with multi threading and multi process

What are we talking about

Some times we wanted to start sub process in python. There are two packages can both do the job: multiprocessing and subprocess. But these two packages serve different purpose.

multiprocessing

subprocess