Skip to content

Instantly share code, notes, and snippets.

View udit7395's full-sized avatar
🎯
Focusing

udit udit7395

🎯
Focusing
View GitHub Profile
@bbattista
bbattista / reconstruct.py
Last active March 7, 2025 17:33
Bayer Reconstruction of 12-bit PGM in RGGB configuration with color/contrast balancing
#!/usr/bin/python
#
# python reconstruct.py filename.pgm
# takes in a raw image having a Bayer Color Formatted Array (RGGB)
# and outputs two JPEG files. The first file is simply the
# Bayer Reconstruction as RGB. The second file has been
# processed to enhance color and contrast using combinations of:
# 1) independent color channel scaling
# 2) simplest color balancing
# 3) white balancing
@aldur
aldur / README.md
Created November 14, 2017 19:44
OnePlusRoot

Root OnePlus5 without unlocking the bootloader

Gain adb root.

$ adb shell am start -n com.android.engineeringmode/.qualcomm.DiagEnabled --es "code" "angela"

Download Magisk-v14.0 and extract it somewhere. Download MagiskManager.

@nvictus
nvictus / loadnpy.js
Last active May 4, 2025 00:11
NumPy binary file parser for javascript
// Client-side parser for .npy files
// See the specification: http://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
var NumpyLoader = (function () {
function asciiDecode(buf) {
return String.fromCharCode.apply(null, new Uint8Array(buf));
}
function readUint16LE(buffer) {
var view = new DataView(buffer);
var val = view.getUint8(0);
@PurpleBooth
PurpleBooth / README-Template.md
Last active May 4, 2026 19:15
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites