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
| function selectTrackByPartialName() | |
| local retval, trackName = reaper.GetUserInputs("Jump to Track", 1, "Track name:", "") | |
| if not retval or trackName == "" then return end | |
| trackName = trackName:lower() | |
| local bestMatch = nil | |
| local bestScore = -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
| // SonicAxiom - crop video to aspect ratio | |
| //@param1:wr 'width ratio' 16 1 70 35 1 | |
| //@param2:hr 'height ratio' 9 1 70 35 1 | |
| //@param3:wt 'horiz. center' 0 -4000 4000 0 2 | |
| //@param4:ht 'vert. center' 0 -4000 4000 0 2 | |
| //@param6:size 'text height' 0.06 0.015 0.07 0.035 0.005 | |
| //@param8:txta 'show params' 0 0 1 0.5 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
| let durationSequence = 1; | |
| function TrackDuration(options?: { enabled?: boolean; excludes?: Array<string> }) { | |
| return function TrackDuration(target: any, propertyKey?: string, descriptor?: PropertyDescriptor) { | |
| if (options?.enabled === false) { | |
| return; | |
| } | |
| let methods: any[]; | |
| //is a method | |
| if (propertyKey) { | |
| methods.push(propertyKey); |
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
| # Define the log file path | |
| log_file="$(dirname "$0")/reboot.sh.log" | |
| # Define a function to log messages with date stamps | |
| log_message() { | |
| local message="$1" | |
| local timestamp=$(date +"%Y-%m-%d %H:%M:%S") | |
| # Use tee to echo the message to both the console and the log file | |
| echo "[$timestamp] $message" | tee -a "$log_file" |
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
| /** | |
| * Run one action at a time. Will run until all pending actions are complete. | |
| */ | |
| export class ActionQueue { | |
| private queueItems: Array<{ | |
| action: () => Promise<any>; | |
| resolve: (value: any) => void; | |
| reject: (error: any) => void; | |
| promise: Promise<any>; | |
| }> = []; |
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
| "use strict"; | |
| (function (factory) { | |
| if (typeof Benchmark !== "undefined") { | |
| factory(Benchmark); | |
| } else { | |
| factory(require("benchmark")); | |
| } | |
| })(function (Benchmark) { | |
| var suite = new Benchmark.Suite; |
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
| exec dbms_output.enable(10000); | |
| SET SERVEROUTPUT ON; | |
| var myCursor REFCURSOR; | |
| begin | |
| --Schema.Package.Procedure(Parameters); | |
| SCHEMA_NAME.PACKAGE_NAME.PROCEDURE_NAME(10,'',:myCursor ); | |
| END; | |
| / |
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
| public class AppConfig | |
| { | |
| public string GetBaseUrl() | |
| { | |
| var req = HttpContext.Current.Request; | |
| return $"{req.Url.Scheme}://{req.Url.Authority}{req.ApplicationPath.TrimEnd('/')}/"; | |
| } | |
| } |
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
| //https://stackoverflow.com/questions/46034188/add-an-operator-to-visual-studio-code-theme-in-settings-json | |
| { | |
| "editor.tokenColorCustomizations": { | |
| "textMateRules": [ | |
| { | |
| "scope": "keyword.operator.word", | |
| "settings": { | |
| "foreground": "#569BD2" | |
| } | |
| } |
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
| powershell -Command "cmdkey /list | ForEach-Object{if($_ -like '*Target:*' -and $_ -like '*'){cmdkey /del:($_ -replace ' ','' -replace 'Target:','')}}" |
NewerOlder