This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Extracted from ReaPack's and ReaImGui's source code (LGPL v3) | |
| /* Usage example: | |
| static int HelloWorld(int foo, int bar) { return foo * bar; } | |
| extern "C" REAPER_PLUGIN_DLL_EXPORT int REAPER_PLUGIN_ENTRYPOINT( | |
| REAPER_PLUGIN_HINSTANCE instance, reaper_plugin_info_t *rec) | |
| { | |
| // ... | |
| // API_HelloWorld and APIdef_HelloWorld must also be registered as usual |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Original poster indicator | |
| // @namespace https://cfillion.ca | |
| // @version 1.2 | |
| // @author cfillion | |
| // @include https://forum.cockos.com/showthread.php* | |
| // ==/UserScript== | |
| // See also: syntax-highlighting.user.js https://gist.github.com/cfillion/7fd2bfe13465a8a37d28a9f0fd60b13b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- @version 1.0beta | |
| -- @author cfillion | |
| local EXT_SECTION = 'cfillion_project_list' | |
| local function makeKey(i) | |
| return string.format('project%d', i) | |
| end | |
| local function enumOpenedProjects() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| errfile="$(mktemp)" | |
| exit=0 | |
| /opt/microchip/mplabx/v*.*/mpasmx/mpasmx -e"$errfile" "$@" | |
| if [ -s "$errfile" ]; then | |
| cat "$errfile" >&2 | |
| exit=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env ruby | |
| # | |
| # TLC5916/TLC5917 8-Channel Constant-Current LED Sink Driver | |
| # Calculate valid output current ranges for given R-EXT values | |
| # | |
| # Run with no arguments to print all valid ranges for common E12 and E96 values | |
| # See ./TLC591x_R-EXT.rb --help for usage instructions and supported options. | |
| # | |
| # Example 1: ./TLC591x_R-EXT.rb 360 720 | |
| # Rext= 360Ω Imin= 4.375mA Imax= 52.090mA IΔ= 47.715mA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function file_info($file) | |
| { | |
| $icons = [ | |
| 'dmg' => 'apple', | |
| 'exe' => 'windows', | |
| 'xz' => 'linux', | |
| ]; | |
| return [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "reaper_plugin.h" | |
| #define EEL_F_SIZE WDL_FFT_REALSIZE | |
| #include "WDL/WDL/eel2/nseel-ram.c" | |
| EEL_F *** (*eel_gmem_attach)(const char *nm, bool is_alloc); | |
| void (*eel_enter_mutex)(); | |
| void (*eel_leave_mutex)(); | |
| void NSEEL_HOSTSTUB_EnterMutex() { eel_enter_mutex(); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstring> | |
| #define REAPERAPI_IMPLEMENT | |
| #include <reaper_plugin_functions.h> | |
| const char *(*__localizeFunc)(const char *str, const char *subctx, int flags); | |
| static bool IsCustomAction(KbdSectionInfo *section, const int id) | |
| { | |
| // logic from SWS's IsMacroOrScript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- @version 0.2beta | |
| -- @author cfillion | |
| local RECURSIVE = false | |
| local NESTED_RULES = { | |
| ['folder level 1'] = { | |
| ['folder level 2'] = { | |
| 'track to select', | |
| }, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ConfigVar Layout | |
| // | |
| // 1. Grab reaper_plugin.h from https://landoleet.org/dev/reaper_plugin.h | |
| // 2. Grab reaper_plugin_functions.h by running the REAPER action "[developer] Write C++ API functions header" | |
| // 3. Grab WDL: git clone https://github.com/justinfrankel/WDL.git | |
| // 4. Build then copy or link the binary file into <REAPER resource directory>/UserPlugins | |
| // | |
| // Linux | |
| // ===== | |
| // |