This file contains 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
%% Save list of files opened in MATLAB editor | |
% Get a list of open files | |
x = matlab.desktop.editor.getAll; | |
editor_open_files_list = {}; | |
for ii = 1:size(x,2) | |
editor_open_files_list=[editor_open_files_list; {x(1,ii).Filename} {x(1,ii).Text}]; %#ok<AGROW> | |
end | |
% Define backup path |
This file contains 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
% Find and force the deletion of all open MATLAB waitbars that cannot be closed | |
delete(findall(0,'type','figure','tag','TMWWaitbar')) |
This file contains 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
!matlab & | |
exit |
This file contains 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
:: Set the following command in SumatraPDF->Settings->Options...->Set inverse search command-line | |
"%USERPROFILE%\AppData\Local\Programs\Microsoft VS Code\Code.exe" -g %f:%l | |
:: NOTE: The value of %USERPROFILE% must be explicitly written out! |
This file contains 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
find . -type f -name '*.pdf' -print0 | | |
while IFS= read -r -d '' file | |
do convert -verbose -density 600 -layers composite "${file}" "${file%.*}.png" | |
done |
This file contains 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
latex(vpa(sym(randn(3)),4)) |
This file contains 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
$User = New-Object System.Security.Principal.NTAccount($env:UserDomain, $env:UserName) | |
$SID = $User.Translate([System.Security.Principal.SecurityIdentifier]) | |
$SID.Value |
This file contains 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
# Install newest version of nano and nanorc | |
brew update | |
brew install nano nanorc | |
# Create `~/.nanorc` file | |
echo "include /opt/homebrew/Cellar/nanorc/*/share/nanorc/*.nanorc" >> ~/.nanorc | |
# The error about the color `brightnormal` | |
# `Error in /opt/homebrew/Cellar/nanorc/*/share/nanorc/nanorc.nanorc on line 26: Color 'normal' takes no prefix` | |
# can be fixed by commenting out line 26 in /opt/homebrew/Cellar/nanorc/*/share/nanorc/nanorc.nanorc |
This file contains 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
#IfWinActive ahk_class SUMATRA_PDF_FRAME | |
^c:: | |
old := ClipboardAll | |
clipboard := "" | |
send ^c |
This file contains 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
%%html | |
<style> | |
.cell-output-ipywidget-background { | |
background-color: transparent !important; | |
} | |
:root { | |
--jp-widgets-color: var(--vscode-editor-foreground); | |
--jp-widgets-font-size: var(--vscode-editor-font-size); | |
} | |
</style> |
OlderNewer