Skip to content

Instantly share code, notes, and snippets.

View X-Raym's full-sized avatar

Raymond Radet X-Raym

View GitHub Profile
@X-Raym
X-Raym / X-Raym_Set focus to REAPER from VSCode and run script.ahk
Created January 29, 2023 21:40
Run REAPER Scripts from VSCode via AHK and mapped KeyBoard shortcut
#Warn ; Enable warnings to assist with detecting common errors.
#Requires AutoHotkey v2.0 ;
#SingleInstance ;
Msg(str) {
ToolTip( str )
SetTimer( ToolTip, -1000 )
return
}
@X-Raym
X-Raym / folder-image-files-to-json.php
Last active January 18, 2023 20:56
List all images files names in PHP file directory and export to JSON
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json");
$exts = ["png", "jpg"];
$dir = "./";
$list = [];
if (is_dir($dir)) {
// From: http://jsfiddle.net/L6LB2/1/
var str = "AddMediaItemTrack";
var words = ["Add", "Track", "Ma"]
var mapObj = {}
for( word of words ) {
mapObj[word] = "<mark>" + word + "</mark>"
}
@X-Raym
X-Raym / X-Raym_Repeat action by sets of 100 items max in selection.lua
Created February 14, 2022 17:32
repeat action by sets of 100 items max in selection
--[[
* ReaScript Name: Repeat action by sets of 100 items max in selection
* Screenshot: https://i.imgur.com/nQsH3mL.gif
* Author: X-Raym
* Author URI:
* Repository:
* Repository URI:
* Licence: GPL v3
* Forum Thread:
* Forum Thread URI:
@X-Raym
X-Raym / X-Raym_Create text layers from CSV.jsx
Last active September 6, 2023 08:58
Create Text Layers from CSV - After Effects Script
/**
* AEScript Name: Create Text Layers from CSV
* Author: X-Raym
* Author URI: https://www.extremraym.com
* Repository: Gist > X-Raym > Create Text Layers from CSV - After Effects Script
* Repository URI: https://gist.github.com/X-Raym/74a02b579233bdf8f9c4fa07db210e05
* Licence: GPL v3
* Version: 1.2
* About: Based on https://www.motionscript.com/ae-scripting/create-text-layers-from-file.html
**/
@X-Raym
X-Raym / open X-Raym ReaScript API.js
Created March 3, 2021 13:15
Grease monkey script to open X-Raym ReaScript API from local reascript.help.html
// ==UserScript==
// @name ReaScript Doc: Local to XR
// @version 1
// @grant none
// ==/UserScript==
// console.log(window.location)
window.addEventListener("load", function(event) {
if( window.location.toString().search("reascripthelp.html") >= 0 ) {
<?php
/*
Plugin Name: LearnDash Add Button On Quiz Fail
Description: Add Learndash continue button even if user fails the quiz. Based on https://developers.learndash.com/hook/show_quiz_continue_buttom_on_fail/
*/
add_filter( 'show_quiz_continue_buttom_on_fail', 'show_quiz_continue_buttom_on_fail_proc', 10, 2 );
function show_quiz_continue_buttom_on_fail_proc( $show_button = false, $quiz_id = 0 ) {
return true;
}
@X-Raym
X-Raym / Missing Davinci Resolve Actions.md
Created November 20, 2020 22:43
Missing davinci resolve action
  • Split at markers
  • Select all itemw with same source

Missing API:

  • select items
  • split items
--[[
* ReaScript Name: Save_FX_Preset
* Lua script for Cockos REAPER
* Author: EUGEN27771
* Author URI: http://forum.cockos.com/member.php?u=50462
* Licence: GPL v3
* Version: 1.04
* Mod by X-Raym
]]
spearkers_presets = {}
spearkers_presets[1] = speakers_bits["KSAUDIO_SPEAKER_MONO"]
spearkers_presets[2] = speakers_bits["KSAUDIO_SPEAKER_STEREO"]
spearkers_presets[3] = speakers_bits["SPEAKER_FRONT_LEFT"] + speakers_bits["SPEAKER_FRONT_CENTER"] + speakers_bits["SPEAKER_FRONT_CENTER"] -- custom LCR
spearkers_presets[4] = speakers_bits["KSAUDIO_SPEAKER_QUAD"]
spearkers_presets[5] = speakers_bits["KSAUDIO_SPEAKER_SURROUND"]
spearkers_presets[6] = speakers_bits["KSAUDIO_SPEAKER_5POINT1_SURROUND"]
spearkers_presets[7] = speakers_bits["SPEAKER_FRONT_LEFT"] + speakers_bits["SPEAKER_FRONT_RIGHT"] + speakers_bits["SPEAKER_FRONT_CENTER"] + speakers_bits["SPEAKER_SIDE_LEFT"] + speakers_bits["SPEAKER_SIDE_RIGHT"] -- custom , based on 7.1, without LFE
spearkers_presets[8] = speakers_bits["KSAUDIO_SPEAKER_7POINT1_SURROUND"]