Skip to content

Instantly share code, notes, and snippets.

@Hasenpfote
Hasenpfote / CIE_daylight_components.csv
Created November 22, 2022 05:40
CIE_daylight_components.csv
l, nm S0(l) S1(l) S2(l)
300 0.04 0.02 0.00
305 3.02 2.26 1.00
310 6.00 4.50 2.00
315 17.80 13.45 3.00
320 29.60 22.40 4.00
325 42.45 32.20 6.25
330 55.30 42.00 8.50
335 56.30 41.30 8.15
340 57.30 40.60 7.80
@Hasenpfote
Hasenpfote / BabelColor_spectral_data.csv
Created November 22, 2022 05:40
BabelColor_spectral_data.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 38 columns, instead of 14. in line 5.
BabelColor Avg.,,Number of charts:,,,,30,,,,Wavelength (nm),,,,,,,,,,,,,,,,,Wavelength (nm),,,,,,,,,,
No.,Color name,380,390,400,410,420,430,440,450,460,470,480,490,500,510,520,530,540,550,560,570,580,590,600,610,620,630,640,650,660,670,680,690,700,710,720,730
1,dark skin,0.055,0.058,0.061,0.062,0.062,0.062,0.062,0.062,0.062,0.062,0.062,0.063,0.065,0.070,0.076,0.079,0.081,0.084,0.091,0.103,0.119,0.134,0.143,0.147,0.151,0.158,0.168,0.179,0.188,0.190,0.186,0.181,0.182,0.187,0.196,0.209
2,light skin,0.117,0.143,0.175,0.191,0.196,0.199,0.204,0.213,0.228,0.251,0.280,0.309,0.329,0.333,0.315,0.286,0.273,0.276,0.277,0.289,0.339,0.420,0.488,0.525,0.546,0.562,0.578,0.595,0.612,0.625,0.638,0.656,0.678,0.700,0.717,0.734
3,blue sky,0.130,0.177,0.251,0.306,0.324,0.330,0.333,0.331,0.323,0.311,0.298,0.285,0.269,0.250,0.231,0.214,0.199,0.185,0.169,0.157,0.149,0.145,0.142,0.141,0.141,0.141,0.143,0.147,0.152,0.154,0.150,0.144,0.136,0.132,0.135,0.147
4,foliage,0.051,0.054,0.056,0.057,0.058,0.059,0.060,0.061,0.062,0.063,0.065,0.0
@Hasenpfote
Hasenpfote / cie_1931_color_space.ipynb
Last active November 22, 2022 05:49
CIE 1931 color space.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / How-to-hook-properties-with-Python3-dataclasses.ipynb
Last active September 23, 2022 15:24
How to hook properties with Python3 dataclasses.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / mc_integration.ipynb
Last active September 18, 2022 14:21
Monte Carlo Integration.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / inverse_transform_sampling.ipynb
Last active August 5, 2022 05:40
inverse transform sampling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / asyncio_limit_concurrency.ipynb
Last active February 2, 2022 13:05
How to limit concurrency with asyncio.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / discrete_colormap.ipynb
Created October 13, 2021 09:09
Create discrete colormap with n colors in matplotlib.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / paring_function.ipynb
Last active October 10, 2021 13:27
A note on the use of szudzik's pairing function in N dimensions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hasenpfote
Hasenpfote / numpy_perlin_noise.ipynb
Last active October 22, 2021 12:28
Visualization of perlin noise using numpy and matplotlib.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.