Skip to content

Instantly share code, notes, and snippets.

View ArthurBeaulieu's full-sized avatar
:octocat:
OUI

Arthur Beaulieu ArthurBeaulieu

:octocat:
OUI
  • Dassault Systèmes
  • Paris
  • 08:38 (UTC +02:00)
  • X @a_Messmaker
View GitHub Profile
@ArthurBeaulieu
ArthurBeaulieu / Overlay.js
Last active January 9, 2021 12:04
A quick loading overlay to be used when switching views or during heavy procssing.
// To use as your page loading:
// Best way is to embed in your HTML a DIV.overlay, without the hidden class
// This way, your page is loaded with the overlay on
// Do your initialization stuff, then just stop the loading, voilà!
// Attach to window to make it globally available in your runtime
window.overlay = document.querySelector('#overlay');
// ... Or, built an overlay DOM element when required
window.overlay = document.createElement('DIV');
@ArthurBeaulieu
ArthurBeaulieu / PyMood.py
Last active April 2, 2020 17:12
Reads a binary .mood file to get RGB values and some basic stats about track and samples
#!/usr/bin/env python3
import argparse
import statistics
global moodbarSamples
moodbarSamples = 1000 # This value is according to Moodbar definition (https://en.wikipedia.org/wiki/Moodbar)
## -------------------- Script execution context -------------------- ##