Skip to content

Instantly share code, notes, and snippets.

@mbrucher
mbrucher / astro.py
Created April 4, 2022 21:46
Small script to stack astro photos
# -*- coding: utf-8 -*-
import glob
import sys
import numpy as np
from PIL import Image
def readFiles(images):
loaded = [np.asarray(Image.open(img)) for img in images]
return np.array(loaded)
@mbrucher
mbrucher / clang-format-diff.py
Created May 18, 2022 10:25
Format with clang-format when committing with git
#!/usr/bin/env python
#
#===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===------------------------------------------------------------------------===#