Skip to content

Instantly share code, notes, and snippets.

View justdoGIT's full-sized avatar

Kamal Pandey justdoGIT

View GitHub Profile
@justdoGIT
justdoGIT / CompressYUYV2JPEG.cpp
Created May 3, 2022 14:17 — forked from royshil/CompressYUYV2JPEG.cpp
Example of converting a YUYV buffer to JPEG using libJPEG
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdint>
#include <memory>
#include <jpeglib.h>
using namespace std;
@justdoGIT
justdoGIT / umap_sparse.py
Created August 21, 2018 17:48 — forked from johnhw/umap_sparse.py
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
@justdoGIT
justdoGIT / umap_sparse.py
Created August 21, 2018 17:48 — forked from johnhw/umap_sparse.py
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random