Skip to content

Instantly share code, notes, and snippets.

View mvanzulli's full-sized avatar
👁️‍🗨️

Mauricio Vanzulli mvanzulli

👁️‍🗨️
View GitHub Profile
I got problems installing Matlab R2022a on Arch. Running the installer throws the following error:
```
terminate called after throwing an instance of 'std::runtime_error'
what(): Failed to launch web window with error: Unable to launch the MATLABWindow application. The exit code was: 127
fish: Job 1, 'sudo ./install' terminated by signal SIGABRT (Abort)
```
I fixed it by running the following commands.
@mvanzulli
mvanzulli / exportall.jl
Created August 15, 2022 13:40
Export all from a julia module
for n in names(@__MODULE__; all = true)
if Base.isidentifier(n) && n ∉ (Symbol(@__MODULE__), :eval, :include)
@eval export $n
end
end

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@mvanzulli
mvanzulli / texDataGenSDCantBeam.m
Last active April 1, 2022 04:54
Function to create a .tex latex input exporting codes parameters
function [] = texDataGenSDCantBeam( printParams, example )
%Compute output directory
texFolderPath = ['./../../../tex/'];
%Name of the file
nameExampleFileVals = ['valsExample' num2str(example) ];
% Write values of the example
% open file
exampleTexFile = fopen( [ texFolderPath nameExampleFileVals '.tex' ] ,'w') ;
% introduce example name
@mvanzulli
mvanzulli / GaussPointsAndWeights.m
Last active March 15, 2022 02:56
Integration gauss points
function [xIntPoints, wIntPoints] = GaussPointsAndWeights (numGaussPoints )
%Integration Gauss Points based on https://keisan.casio.com/exec/system/1329114617
if numGaussPoints == 1
xIntPoints = 0;
wIntPoints = 2;
elseif numGaussPoints == 2
@mvanzulli
mvanzulli / templateOctavePlots.m
Last active March 15, 2022 02:24
templateOctavePlots
```octave
% plot
figBars = figure(1) ;
h = clf;
y = [executionTimes2plotConssistent' executionTimes2plotLumped'] ;
h = bar (y);
% sat colours and labels
set (h(1), "facecolor", violet);
set (h(2), "facecolor", green);
% set (fig3(3), "facecolor", "b");