Skip to content

Instantly share code, notes, and snippets.

Library style check log

  • OpenIPSL.Electrical.Renewables
    • Documentation missing
  • OpenIPSL.Electrical.Renewables.PSSE
    • Documentation missing
  • OpenIPSL.Electrical.Renewables.PSSE.BESS
    • Description string missing for
      • QFunctionality
  • PFunctionality
@dietmarw
dietmarw / Modelica.xml
Created August 14, 2012 06:24 — forked from pclary/Modelica.xml
Modelica syntax highlighting for Notepad++
<NotepadPlus>
<UserLang name="Modelica" ext="mo">
<Settings>
<Global caseIgnored="no" />
<TreatAsSymbol comment="no" commentLine="yes" />
<Prefix words1="no" words2="no" words3="no" words4="no" />
</Settings>
<KeywordLists>
<Keywords name="Delimiters">000000</Keywords>
<Keywords name="Folder+">function model for parfor block class connector record package</Keywords>

Keybase proof

I hereby claim:

  • I am dietmarw on github.
  • I am dietmarw (https://keybase.io/dietmarw) on keybase.
  • I have a public key ASBzKJB53BldshQ2JEbMTWlifvYI5zu8pSs0EAPCWGhI8Ao

To claim this, I am signing this object:

For equation
controller.BooleanExpression1.y = time > 2500;
found in class Modelica.Blocks.Interfaces, /home/dietmarw/.workspace/gh-modelica/Modelica/Modelica/Blocks/Sources.mo at line 82, and used in component controller.BooleanExpression1.
The expression "time > 2500" will generate a state event and not a time event.
This is not an error, but it slightly decreases performance and is unlikely to be intentional.
The only supported variants for time-events are "time>=expr" and "time<expr", where expr is a discrete-time expression.
You can turn off this warning by setting Advanced.PedanticModelica=false.
For equation
@dietmarw
dietmarw / nbstripout.py
Created July 13, 2015 14:59
Removes a cell if "skip" is present in the metadata
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git filter or pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
(based on: https://gist.github.com/minrk/6176788)

Installation instructions of 32bit Dymola for Linux on a 64bit machine

Here the solution (it originates from Martin Sjölund of OM) wich I'm happy to share:

OK so I basically followed the following steps on my 64bit Ubuntu 13.10 bit machine.

Note: I got into trouble trying to get Dymola running with 32bit version of

@dietmarw
dietmarw / .gitignore
Created January 23, 2013 08:06 — forked from FND/.gitignore
*.pyc
@dietmarw
dietmarw / .gitignore
Created January 18, 2013 13:16 — forked from FND/.gitignore
*.pyc
@dietmarw
dietmarw / .gitignore
Created January 18, 2013 13:09 — forked from FND/.gitignore
*.pyc
model test
annotation (Documentation(info="<html>
<pre>
A = [1,2,3;
3,4,5;
2,1,4];
b = {10,22,12};
x = Matrices.solve(A,b);
Matrices.eigenValues(A);