Skip to content

Instantly share code, notes, and snippets.

View mthines's full-sized avatar
🍄
Feeling Fungi'

Mads Thines mthines

🍄
Feeling Fungi'
  • Dash0
  • Copenhagen, Denmark
  • 03:19 (UTC +01:00)
View GitHub Profile
@mthines
mthines / .gitignore
Last active May 22, 2025 10:28
Cline MCP Configuration
.env
@mthines
mthines / Merge MIDI.lua
Last active January 30, 2024 09:38
Merge MIDI & to selected tracks - Reaper JSFX
-- @name Merge MIDI
-- @description Merged the selected items into a single MIDI item
-- @author Mads Thines Coello ([email protected])
-- @reference https://www.reapertips.com/post/how-to-merge-midi-in-reaper
-- @version 0.1.0
function mergeMIDI()
-- Item: Set item mix behavior to always mix
reaper.Main_OnCommand(40919, 0);
@mthines
mthines / iterate.sh
Last active February 25, 2022 11:11
Bash iterating
#!/bin/bash
ARGS=( $1 $2 $3 $4 $5 $6 $7 $8 $9 )
for (( i=0; i<${#ARGS[@]}; i++ ));
do
if [[ "${ARGS[$i]}" =~ "--skip" ]]; then
echo "✅ --skip present. Skipping check"
exit 1;
fi
@mthines
mthines / README.md
Last active January 25, 2022 11:50
React Select SCSS Overrides

This is a fix for people using SCSS Modules for React-Select

  1. Download and import the react-select_overrides.module.scss file and put it next to your styles.module.scss file.

Like so.

Your styles file

@use './react-select_overrides.module.scss' as *;
@mthines
mthines / HX Controller - Full.jsfx
Last active November 5, 2021 10:54
Line 6 Helix Controller - JS: VST
A// Copyright 2021 Mads Thines Coello
// [email protected]
// Version 1.0.2
// A MIDI Controller, for sending specific CC signals to the Line 6 Helix
// Inspired by https://stash.reaper.fm/v/3763/Automation_to_MIDI.zip
desc:HX Ctrl - Full (Guitar CC + Vocal CC + Snapshot)
slider1:0<0,15,1{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}>MIDI Channel
slider4:0<0,7,1>Snapshot
@mthines
mthines / destructuring.js
Created September 10, 2018 07:02 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@mthines
mthines / Fish Aliases.md
Last active September 10, 2018 06:53
Fish Aliases

Aliases

Git

alias gco="git checkout"; funcsave gco;
alias gs="git stash"; funcsave gs;
alias gst="git status"; funcsave gst;
alias gcl="git clone"; funcsave gcl;
{
"extends": [
"eslint-config-airbnb"
],
"parser": "babel-eslint",
"settings": {
"ecmascript": 6
},
"env": {
"browser": true
@mthines
mthines / .editorconfig
Created July 23, 2018 09:34
.editorconfig
[*]
charset=utf-8
end_of_line=lf
trim_trailing_whitespace=true
insert_final_newline=true
indent_style=space
indent_size=2
[{.babelrc,.stylelintrc,.eslintrc,jest.config,*.bowerrc,*.jsb3,*.jsb2,*.json}]
indent_style=space
@mthines
mthines / kaiju-profile-image.jpg
Last active December 9, 2017 13:16
kaiju-profile
kaiju-profile-image.jpg