Skip to content

Instantly share code, notes, and snippets.

View KelSolaar's full-sized avatar
🔅
Bending Light

Thomas Mansencal KelSolaar

🔅
Bending Light
View GitHub Profile
@KelSolaar
KelSolaar / download_slack_files.py
Created August 18, 2024 02:58
Download Slack Files from an Export
import asyncio
import json
import logging
from functools import partial, reduce
from pathlib import Path
import aiofiles
import aiohttp
import aiometer
@KelSolaar
KelSolaar / nomad-cloud-init.yaml
Created August 5, 2024 08:01 — forked from Ranjandas/nomad-cloud-init.yaml
A cloud-init file to spin up a single node Nomad + Consul dev environment.
apt:
sources:
hashicorp:
keyid: 798AEC654E5C15428C8E42EEAA16FCBCA621E701 # fingerprint of https://apt.releases.hashicorp.com/gpg to fetch from Ubuntu Keyserver
source: "deb [signed-by=$KEY_FILE] https://apt.releases.hashicorp.com $RELEASE main"
docker:
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
source: "deb [signed-by=$KEY_FILE] https://download.docker.com/linux/ubuntu $RELEASE stable"
package_update: true
packages:
@KelSolaar
KelSolaar / cie_lab.py
Last active October 21, 2023 07:59
CIE Lab to CIE XYZ - Mojo
from algorithm import parallelize
from benchmark import Benchmark
from math import min
from math.limit import inf
from python import Python
from tensor import Tensor, TensorSpec, TensorShape
from random import rand
from time import now
from utils.index import Index
@KelSolaar
KelSolaar / plasa_ansi_e154.py
Created August 19, 2023 23:14
PLASA ANSI E1.54 - Whitepoint Derivation
# Standard claims at https://webstore.ansi.org/preview-pages/ESTA/preview_ANSI+E1.54-2015.pdf gives [0.4254, 0.4044]
import colour
# Blackbody: 360, 780, 1nm
# CIE 1931 2 Degree Standard Observer: 360, 780, 1nm
# Method: ASTM E308
print(
colour.XYZ_to_xy(
colour.sd_to_XYZ(
@KelSolaar
KelSolaar / BuildProject.xml
Created July 31, 2023 03:58 — forked from regner/BuildProject.xml
A sample BuildGraph script for building, cooking, and packaging an Unreal project.
<?xml version='1.0' ?>
<!--
Why is this one giant script instead of a bunch of smaller scripts?
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't
really much of a programming language there is no easy way to use an IDE and jump between
includes, find usages of variables, and just generally quickly search things. It was found to
be easier to have a single large file that a developer can quickly jump up and down in when
trying to understand what the BuildGraph script is doing.
@KelSolaar
KelSolaar / aided_atlas.py
Last active April 3, 2023 07:55
AideDD - Atlas
#!/usr/bin/env python
"""
AideDD - Atlas
==============
This Python module extracts the map data from
`AideDD Atlas <https://www.aidedd.org/public/atlas>`__
The following packages are required:
@KelSolaar
KelSolaar / pyproject.toml
Created February 22, 2022 06:48
Colour - pyproject.toml
[tool.poetry]
name = "colour"
version = "0.4.0"
description = "Colour Science for Python"
license = "BSD-3-Clause"
authors = [ "Colour Developers <colour-developers@colour-science.org>" ]
maintainers = [ "Colour Developers <colour-developers@colour-science.org>" ]
readme = 'README.rst'
repository = "https://github.com/colour-science/colour"
homepage = "https://www.colour-science.org/"
@KelSolaar
KelSolaar / GSoC2021.md
Last active August 23, 2021 02:48 — forked from SGeetansh/GSoC2021.md
Google Summer of Code 2021 Final Work Submission
@KelSolaar
KelSolaar / aces_shoot_cc24_neutral5.json
Last active September 7, 2021 10:04
ACES Shoot - CC24 Neutral 5 (.70 D)
{
"ALEXA SXT": {
"A-2_2": {
"-2": {
"Directory": "/20210601/A003R732/A003R732/A003C003_210519_R732",
"Encoding": "LOG-C/AWG",
"Grey Card (Sequence)": [
[0.255043625831604, 0.24865077435970306, 0.23095490038394928],
[0.2548905611038208, 0.2486673891544342, 0.23095150291919708],
[0.2553250789642334, 0.24885307252407074, 0.23137225210666656],
@KelSolaar
KelSolaar / aces_shoot_cc24_samples.json
Last active September 7, 2021 10:03
ACES Shoot - CC24 Samples
This file has been truncated, but you can view the full file.
{
"ALEXA SXT": {
"Flat Field": {
"NA": {
"Samples (Sequence)": [
[
[0.671089768409729, 0.6727330684661865, 0.6635704040527344],
[0.6711151003837585, 0.6730829477310181, 0.6639554500579834],
[0.6708062291145325, 0.6727433204650879, 0.6637686491012573],