Skip to content

Instantly share code, notes, and snippets.

View AndreyAkinshin's full-sized avatar

Andrey Akinshin AndreyAkinshin

View GitHub Profile
@AndreyAkinshin
AndreyAkinshin / README.md
Last active December 18, 2023 13:04
BenchmarkDotNetImages
@AndreyAkinshin
AndreyAkinshin / DrosophilaNet.eps
Last active January 23, 2020 16:38
DrosophilaNet
This file has been truncated, but you can view the full file.
@AndreyAkinshin
AndreyAkinshin / DrosophilaModel.R
Created January 23, 2020 16:31
Drosophila Model
library(ggplot2)
library(deSolve)
library(ggpubr)
library(latex2exp)
'%=%' <- function(x, y) {
x <- as.character(substitute(x)[-1])
if (length(y) < length(x))
y <- rep(y, ceiling(length(x) / length(y)))
if (length(y) > length(x))
@AndreyAkinshin
AndreyAkinshin / DrosophilaModel.R
Created January 23, 2020 16:21
Drosophila Model
library(ggplot2)
library(deSolve)
library(ggpubr)
'%=%' <- function(x, y) {
x <- as.character(substitute(x)[-1])
if (length(y) < length(x))
y <- rep(y, ceiling(length(x) / length(y)))
if (length(y) > length(x))
y <- y[1:length(x)]
@AndreyAkinshin
AndreyAkinshin / AssemblyNameTests.cs
Last active October 24, 2019 08:53
AssemblyNameTests.cs
using System.Reflection;
using Xunit;
namespace AssemblyNameTests
{
public class ParsingTests
{
[Theory]
[InlineData(" Por ta bility")]
[InlineData("'Por, tability!'")]
// Copyright (c) 2019 Andrey Akinshin
// Licensed under The MIT License https://opensource.org/licenses/MIT
using System;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// The ED-PELT algorithm for changepoint detection.
///
/// <remarks>
@AndreyAkinshin
AndreyAkinshin / model.R
Created December 21, 2018 17:21
Simulation (2018-12-21)
################################################################################
# A simulation of the following system:
#
# dx/dt = L1(z) - k1 * x
# dy/dt = L2(x) - k2 * y
# dz/dt = L3(y) - k3 * z
#
# Parameters:
# k1 = 1.1 k2 = 2.2 k3 = 3.3
# a1 = 2 a2 = 3 a3 = 4
@AndreyAkinshin
AndreyAkinshin / model.R
Created December 15, 2018 18:08
Simulation (2018-12-15)
################################################################################
# A simulation of the following system:
#
# dx/dt = L1(z) - k1 * x
# dy/dt = L2(x) - k2 * y
# dz/dt = L3(y) - k3 * z
#
# Parameters:
# k1 = 1.2 k2 = 1.4 k3 = 1.5
# a1 = 2 a2 = 3 a3 = 4
@AndreyAkinshin
AndreyAkinshin / model.R
Created December 9, 2018 13:02
Simulation (2018-12-09)
################################################################################
# A simulation of the following system:
#
# dm1/dt = L1(p3) - k1 * m1
# dm2/dt = L2(p1) - k2 * m2
# dm3/dt = L3(p2) - k3 * m3
# dp1/dt = G1(m1) - l1 * p1
# dp2/dt = G2(m2) - l2 * p2
# dp3/dt = G3(m3) - l3 * p3
#
@AndreyAkinshin
AndreyAkinshin / model.R
Created April 9, 2018 16:17
Simulation (2018-03-09)
################################################################################
# A simulation of the following system:
#
# dx1/dt = - k1 * x1 + f1(x9)
# dx2/dt = mu2 * x1 - k2 * x2
# dx3/dt = mu3 * x2 - k3 * x3
# dx4/dt = mu4 * x3 - k4 * x4
# dx5/dt = - k5 * x5 + f5(x4)
# dx6/dt = mu6 * x5 - k6 * x6
# dx7/dt = mu7 * x6 - k7 * x7