Skip to content

Instantly share code, notes, and snippets.

View iamOgunyinka's full-sized avatar

Joshua iamOgunyinka

View GitHub Profile
@iamOgunyinka
iamOgunyinka / task_prod.py
Created August 15, 2019 04:51
Cooperative sequenced-before tasks
#!/usr/bin/env python
import subprocess
from threading import Event, Thread, Lock, get_ident
from concurrent.futures import ThreadPoolExecutor
from queue import Empty
lock = Lock()
my_list = []
def add_data(data):
with lock:
@iamOgunyinka
iamOgunyinka / psd_debug.hpp
Last active November 3, 2021 11:49
Add JSON print for desciptors
// Aseprite PSD Library
// Copyright (C) 2021 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef PSD_DEBUG_H_INCLUDED
#define PSD_DEBUG_H_INCLUDED
#pragma once