Skip to content

Instantly share code, notes, and snippets.

View timlod's full-sized avatar
🥁

Tim Loderhose timlod

🥁
View GitHub Profile
@timlod
timlod / gist:6111d2f96357f55b1d2cc1976ac9740f
Created January 13, 2021 10:05
Tree-sitter profile report
- timer-event-handler 173 58%
- apply 173 58%
- jupyter-event-handler 170 57%
- apply 170 57%
- #<compiled 0x1576764d62a1> 170 57%
- apply 170 57%
- #<compiled 0x157676cd3251> 170 57%
- jupyter-handle-message 170 57%
- apply 170 57%
- #<compiled 0x157676cdaffd> 170 57%

Keybase proof

I hereby claim:

  • I am timlod on github.
  • I am timlod (https://keybase.io/timlod) on keybase.
  • I have a public key ASDJB07-SbdLV_t-Okq9C3rzTRqgUDfglx3Ihdi2pNpeggo

To claim this, I am signing this object:

@timlod
timlod / parseArgs.m
Last active July 24, 2017 11:59
MATLAB option parser skeleton
% I use parts of the code of export_fig for this skeleton, scrapped of its specific details.
% Copyright (C) Oliver Woodford 2008-2014, Yair Altman 2015-, Tim Loderhose 2016
% https://github.com/altmany/export_fig | https://github.com/altmany/export_fig/blob/master/LICENSE
function options = parseArgs(varargin)
% Parse the input arguments
% Set the defaults
options = struct(...
'opt1', 'arg1default', ...
'opt2', true, ...