Skip to content

Instantly share code, notes, and snippets.

View danielalejandroamaro's full-sized avatar
😁

Daniel Amaro danielalejandroamaro

😁
View GitHub Profile
@awesomebytes
awesomebytes / threaded_function_python.md
Last active February 7, 2024 11:51
Make a function or method threaded in python with a decorator

How to make a python function or class method threaded

From this stack overflow question I got this great snippet.

# Threaded function snippet
def threaded(fn):
    """To use as decorator to make a function call threaded.
    Needs import
    from threading import Thread"""
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active October 26, 2024 17:40
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl