Skip to content

Instantly share code, notes, and snippets.

View yuki-inaho's full-sized avatar

yuki-inaho

View GitHub Profile
@SubCoder1
SubCoder1 / RB-Tree.cpp
Created August 22, 2018 17:26
Red Black Tree implementation in C++
#include <bits/stdc++.h>
using namespace std;
struct node {
int data{};
node* left = nullptr;
node* right = nullptr;
node* parent = nullptr;
string color;
};
@AndreLester
AndreLester / ConcaveHull.py
Last active September 28, 2024 03:31
Fast concave hull implementation in Python.
'''
Copyright (C) 2018 Andre Lester Kruger
ConcaveHull.py is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
ConcaveHull.py is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@alexeygrigorev
alexeygrigorev / tqdm_pool.py
Created December 6, 2018 15:36
Track progress of ProcessPoolExecutor with tqdm
from glob import glob
import multiprocessing
from concurrent.futures import ProcessPoolExecutor
import cv2
from PIL import Image
import imagehash
from tqdm import tqdm
@jcreinhold
jcreinhold / rpca_gpu.py
Last active March 21, 2025 20:24
GPU RPCA and SVT
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rpca_gpu
implementations of RPCA on the GPU (leveraging pytorch)
for low-rank and sparse matrix decomposition as well as
a nuclear-norm minimization routine via singular value
thresholding for matrix completion
@glopesdev
glopesdev / Delaunay.cs
Last active March 5, 2021 11:12
Delaunay triangulation based on Paul Bourke's algorithm (http://paulbourke.net/papers/triangulate/)
using OpenTK;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
static class Delaunay
{
@tonyreina
tonyreina / openvino_inference.py
Last active March 23, 2024 05:58
Generic script for doing inference on OpenVINO model
#!/usr/bin/env python
# python openvino_inference.py -l /opt/intel/openvino/inference_engine/lib/libcpu_extension.so
import sys
import os
from argparse import ArgumentParser
import numpy as np
import logging as log
from timeit import default_timer as timer
@p3jitnath
p3jitnath / install-docker.sh
Last active June 26, 2025 20:17
Docker and Nvidia Docker installation in Ubuntu 20.04 LTS
# WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned.
# Docker
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active June 29, 2026 01:48
utility functions for point cloud type interconversion between PCL and Open3D
cmake_minimum_required( VERSION 3.6 )
# Language
enable_language( CXX )
# Compiler Settings
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
@smestern
smestern / testSW.py
Last active November 9, 2023 10:57 — forked from ctralie/testOt.py
2D Histogram Sliced Wasserstein Distance via Scipy.stats
"""
Original Docstring -
Programmer: Chris Tralie
Purpose: To use the POT library (https://github.com/rflamary/POT)
to compute the Entropic regularized Wasserstein distance
between points on a 2D grid
Modified by Sam Mestern
Shows the usage of the sliced wasserstein distance to measure the distance between two
@standaloneSA
standaloneSA / nvidia.md
Last active May 26, 2026 11:50 — forked from meikuam/nvidia.md
Nvidia GPUs sorted by CUDA cores