Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Thomas Mansencal KelSolaar

🎯
Focusing
Block or report user

Report or block KelSolaar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@KelSolaar
KelSolaar / inkscape.py
Last active Jan 18, 2019
Inkscape - macOs - Absolute Path Wrapper
View inkscape.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Inkscape - macOs - Absolute Path Wrapper
========================================
On *macOs*, *Inkscape* requires absolute paths to work::
https://answers.launchpad.net/inkscape/+question/280575
@KelSolaar
KelSolaar / colour-0.3.15-current-changes.md
Last active Dec 10, 2019
Colour 0.3.15 - Current Changes
View colour-0.3.15-current-changes.md

Colour 0.3.15 - Alpha Milestone

Features

colour.colorimetry

  • The typical CIE LED illuminants spectral power distributions and chromaticity coordinates have been added to the datasets: (@KelSolaar)
    • LED-B1
    • LED-B2
    • LED-B3
    • LED-B4
@KelSolaar
KelSolaar / colour_examples_and_unit_tests_recommended_values.py
Last active Jun 27, 2019
Recommended Values for Use in Colour Examples and Unit Tests
View colour_examples_and_unit_tests_recommended_values.py
@KelSolaar
KelSolaar / mitsuba_export_spds.py
Last active Oct 12, 2018
Mitsuba - Shader Balls
View mitsuba_export_spds.py
for name, spd in SPDS.items():
prefix = ''.join([token.title() for token in spd.name.split()])
prefix = prefix.replace('.', '_')
prefix = prefix.replace('(', '_')
prefix = prefix.replace(')', '_')
filename = '/Users/kelsolaar/Google Drive/Cinematic Color Update/Supporting Documents/Spectral/ShaderBalls/ColorChecker N Ohta/{0}.spd'.format(prefix)
colour.write_spds_to_csv_file({spd.name: spd}, filename, delimiter=' ')
with open(filename, 'r') as csv_file:
View three_js_helpers.py
def face_mask(
quad=False,
material=False,
face_uvs=False,
face_vertex_uvs=False,
face_normals=False,
face_vertex_normals=False,
face_colours=False,
face_vertex_colours=False,
View colour_blender.py
import bpy
from colour.models import RGB_COLOURSPACES, RGB_to_XYZ, \
XYZ_to_colourspace_model
def RGB_identity_cube(subdivisions=32):
bpy.ops.mesh.primitive_cube_add(location=(0.5, 0.5, 0.5))
bpy.ops.transform.resize(value=(0.5, 0.5, 0.5))
bpy.ops.object.transform_apply(location=True, scale=True)
View HeNe_Laser_Spectrum.csv
wavelength HeNe Laser
300 122.74370851393542
301 117.57575610942149
302 121.45172041280648
303 121.45172041280648
304 121.45172041280648
305 118.86774421055043
306 118.86774421055043
307 120.159732311678
308 120.159732311678
@KelSolaar
KelSolaar / invoke.sh
Last active Jul 9, 2018
Docker - Bash Shell Helpers
View invoke.sh
#!/usr/bin/env bash
# Container Information
CONTAINER_IMAGE="nginx:latest"
CONTAINER_NAME="nginx"
# Container Run Command
run-container() {
docker run \
-d \
--restart always \
@KelSolaar
KelSolaar / nginx.conf
Created Jun 16, 2018 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@KelSolaar
KelSolaar / V35_IDT.nkp
Created May 28, 2018
Panasonic Varicam V35 IDT
View V35_IDT.nkp
set cut_paste_input [stack 0]
version 10.5 v2
push $cut_paste_input
Expression {
temp_name0 cutInv
temp_expr0 0.181
temp_name1 b_
temp_expr1 0.00873
temp_name2 c
temp_expr2 0.241514
You can’t perform that action at this time.