Skip to content

Instantly share code, notes, and snippets.

View si's full-sized avatar
🌸
Building PETALS Plus

Si Jobling si

🌸
Building PETALS Plus
View GitHub Profile
@g30r93g
g30r93g / cue2timestamp.py
Created April 5, 2024 23:02
Convert a cue sheet file to YouTube timestamps
def parse_cue_sheet(filename):
"""Parses a CUE sheet and returns a list of track dictionaries.
Args:
filename: The path to the CUE sheet file.
Returns:
A list of dictionaries, where each dictionary contains the following keys:
order: The order of the track in the CUE sheet.
title: The title of the track.
@himynameisdave
himynameisdave / gradient-animation.less
Last active May 23, 2023 01:45
Mixins for Animating Between Gradients
.gradient-animation( @start, @end, @transTime ){
background-size: 100%;
background-image: linear-gradient(@start, @end);
position: relative;
z-index: 100;
&:before {
background-image: linear-gradient(@end, @start);
content: '';
display: block;
height: 100%;
@paulirish
paulirish / bling.js
Last active September 13, 2025 12:13
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };
@elidupuis
elidupuis / handlebars-helpers.js
Last active December 7, 2021 02:24
Simple Handlebars.js helpers
/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");