Skip to content

Instantly share code, notes, and snippets.

@jeromecornet
jeromecornet / Mark GoPro HiLight.py
Created December 6, 2023 18:21
Davinci Resolve Studio import HiLight tags from GoPro footage as a clip marker. Credit for actual tag parsing goes to https://github.com/icegoogles/GoPro-Highlight-Parser
#!/usr/bin/env python
"""
Script to import GoPro HiLight tags as clip markers.
Execute this in the bin where your footage is stored, it will extract the highlight tags
"""
import os
import sys
import struct
blueprint:
# Needs the updated firmware: version 0x01000035 (mine came with version 0x00010012)
# Added dot-button support by Atlantis_One
# Based on https://gist.github.com/cooljimy84/f1f2da3a6b214879b82bf06a68d89264 by James Crook
name: ZHA - IKEA Symfonisk sound controller GEN2 for media and dot-buttons control
description: 'Control media with an IKEA Symfonisk sound controller GEN2 (Square one).
Full media control with the media buttons (play/pause, volume up/down and skip/previous track).
Fully customisable dot-buttons, with options for single, double and long press for each one.'
domain: automation
input:
---
# This automation simulates the use of the IKEA TRADFRI Remote control
# connected through ZHA.
blueprint:
source_url: https://github.com/niro1987/homeassistant-config/blob/main/blueprints/automation/niro1987/zha_ikea_tradfri_styrbar_custompreset.yaml
name: ZHA - IKEA TRADFRI - STYRBAR - Custom Preset with color cycling and night light
description: >-
@jeromecornet
jeromecornet / File locations
Last active August 26, 2021 21:14
Tailwindcss with sprockets
tailwind_transformer.rb -> app/models/tailwind_transformer.rb
tailwind.rb -> config/initializers/tailwind.rb
tailwind.config.js.erb -> config/tailwind.config.js.erb
package.json -> ./package.json
@jeromecornet
jeromecornet / test.html
Created February 28, 2013 22:40
cross domain cart
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
function getCart() {
$.ajax({
<div>
<script jquery>
<script jquery.shopify>
<css>
$("body").shopify({
product_area: ".shopify-widget-product",
cart_indicator: ".shopify-widget-cart",
button: ".shopify-widget-button",
style: "/assets/store.css",