Skip to content

Instantly share code, notes, and snippets.

@agarny
agarny / runpath2rpath.c
Last active June 19, 2023 12:19
A simple program for converting a RUNPATH value to a RPATH value (for 64-bit libraries).
/*******************************************************************************
Copyright The University of Auckland
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@agarny
agarny / Calcium transient.cellml
Created February 6, 2017 09:44
CellML file with two variables of integration (according to the CellML API)
<?xml version='1.0'?>
<model name="Calcium_transient" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#">
<units name="uM">
<unit prefix="micro" units="mole"/>
<unit exponent="-1" units="litre"/>
</units>
<units name="per_s">
<unit exponent="-1" units="second"/>
</units>
<units name="per_s_per_uM">
@agarny
agarny / installQt.qs
Created October 31, 2017 17:27
Script to install Qt from the command line using something like: ./qt-installer --platform minimal --script installQt.qs
function Controller() {
installer.autoRejectMessageBoxes();
installer.installationFinished.connect(function() {
gui.clickButton(buttons.NextButton);
});
}
Controller.prototype.WelcomePageCallback = function() {
gui.clickButton(buttons.NextButton);
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.9308;
states[1] = 6.181512e-9;
states[2] = 4.595622e-10;
states[3] = 0.069199;
states[4] = 0.409551;
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.05;
states[1] = 0.6;
states[2] = 0.325;
states[3] = 0.0;
variables[0] = 0.3;
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.01;
states[1] = 0.8;
states[2] = 0.01;
states[3] = -87.0;
variables[0] = -60.0;
#include <math.h>
#include <stdio.h>
void initializeConstants(double *states, double *variables)
{
states[0] = 0.092361701692;
states[1] = 0.015905380261;
states[2] = 0.01445216109;
states[3] = 0.04804900895;
states[4] = 0.48779845203;
from math import *
import numpy as np
def initializeConstants(states, variables):
states[0] = 0.9308
states[1] = 6.181512e-9
states[2] = 4.595622e-10
states[3] = 0.069199
states[4] = 0.409551
from math import *
import numpy as np
def initializeConstants(states, variables):
states[0] = 0.05
states[1] = 0.6
states[2] = 0.325
states[3] = 0.0
variables[0] = 0.3