Skip to content

Instantly share code, notes, and snippets.

@nlac
nlac / gist:29616ea55fdcb5f2e5f04fbd2afac071
Last active April 30, 2018 19:37
Simplified mod of kr0k0f4nt's Bayangtoys X21 Gimbal Control script for Arduino Nano
/*
* Simplified version of kr0k0f4nt's script by nlac
* - no STD ange, just MIN and MAX
* - no pin mode selection, only one, new mode: pressing DOWN (video) button slowly rotates the camera downwards until MAX, pressing it again stops the movement. Pressing UP does the same just upwards until MIN angle.
*
* Original header comment:
*
* Bayangtoys X21 BGC Gimbal Control for Ardunio
* by kr0k0f4nt (2017) - Version 1.1
*
@nlac
nlac / splitter.js
Last active March 20, 2024 02:05
A small js snippet to split a merged audio track to parts by silence analysis. Based on ffmpeg "silencedetect" filter and node.js.
/**
* This javascript snippet is able to split a merged audio track to parts by silence analysis
* It is based on ffmpeg (https://ffmpeg.org), especially on the silencedetect filter (https://ffmpeg.org/ffmpeg-filters.html#silencedetect)
*
* Assumptions:
* - nodejs is installed
* - ffmpeg is installed
*
* Usage:
* - fill the options object
@nlac
nlac / youtubetracksplitter.js
Last active April 6, 2017 20:43
This script helps to intelligently split merged audio tracks on youtube, generating a list of ffmpeg commands
/**
* ffmpeg script generator for merged audio tracks on youtube
* @author nlac
* @desc Helps to intelligently split merged audio tracks (eg. https://www.youtube.com/watch?v=Lf6yNZPwREU)
*
* Usage:
* 1. download the merged track eg. using JDownloader
* 2. open the youtube page in a browser + paste this script into the js console
* 3. fill the variables in the first line (fullSong is the file name of the downloaded track)
* 4. run the script