This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# A simulation of the following system: | |
# | |
# dm1/dt = -k1 * m1 + f1(p9) dp1/dt = mu1 * m1 - nu1 * p1 | |
# dm2/dt = -k2 * m2 + f2(p1) dp2/dt = mu2 * m2 - nu2 * p2 | |
# dm3/dt = -k3 * m3 + f3(p2) dp3/dt = mu3 * m3 - nu3 * p3 | |
# dm4/dt = -k1 * m1 + f1(p3) dp4/dt = mu1 * m1 - nu1 * p4 | |
# dm5/dt = -k2 * m2 + f2(p4) dp5/dt = mu2 * m2 - nu2 * p5 | |
# dm6/dt = -k3 * m3 + f3(p5) dp6/dt = mu3 * m3 - nu3 * p6 | |
# dm7/dt = -k1 * m1 + f1(p6) dp7/dt = mu1 * m1 - nu1 * p7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# A simulation of the following system: | |
# | |
# dm1/dt = -k1 * m1 + f1(p5) dp1/dt = mu1 * m1 - nu1 * p1 | |
# dm2/dt = -k2 * m2 + f2(p1) dp2/dt = mu2 * m2 - nu2 * p2 | |
# dm3/dt = -k3 * m3 + f3(p2) dp3/dt = mu3 * m3 - nu3 * p3 | |
# dm4/dt = -k4 * m4 + f4(p3) dp4/dt = mu4 * m4 - nu4 * p4 | |
# dm5/dt = -k5 * m5 + f5(p4) dp5/dt = mu5 * m5 - nu5 * p5 | |
# | |
# Parameters: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(deSolve) | |
library(dplyr) | |
library(ggplot2) | |
# Model | |
f <- function(x) 258 / (1 + x ^ 7) | |
model <- function(t, state, parameters) { | |
with(as.list(c(state)), { | |
dx1 <- f(x5) - x1 | |
dx2 <- f(x1) - x2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# A simulation of the following system: | |
# | |
# dm1/dt = -k1 * m1 + f1(p3) dp1/dt = mu1 * (m1 - p1) | |
# dm2/dt = -k2 * m2 + f2(p1) dp2/dt = mu2 * (m2 - p2) | |
# dm3/dt = -k3 * m3 + f3(p2) dp3/dt = mu3 * (m3 - p3) | |
# | |
# Parameters: | |
# k1 = 1.5 k2 = 1.7 k3 = 2.0 | |
# mu1 = 3.0 mu2 = 3.5 mu3 = 4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
namespace NuGetUltimateBuilder | |
{ | |
// Requires nuget.exe >= v3.5.0-rc1 | |
internal class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Colors> | |
<Foreground>12303291</Foreground> | |
<Background>4276028</Background> | |
<Background2>4276028</Background2> | |
<Mark>33023</Mark> | |
<Cursor>11497035</Cursor> | |
<CursorText>-2147483634</CursorText> | |
<UseInvertedSelection>False</UseInvertedSelection> | |
<InactivePanelBrightness>100</InactivePanelBrightness> | |
<UseFrameCursor>False</UseFrameCursor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#SingleInstance force | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetCapsLockState, AlwaysOff | |
; Based on https://gist.github.com/ronjouch/2428558 | |
; Variables definition |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# A simulation of the Elowitz's repressilator. | |
# | |
# References | |
# * A Synthetic Oscillatory Network of Transcriptional Regulators; | |
# Michael Elowitz and Stanislas Leibler; Nature. 2000 Jan 20;403(6767):335-8. | |
# | |
# Author: Andrey Akinshin | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
public static class JitModules | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("OS: " + Environment.OSVersion.VersionString); | |
Console.WriteLine("CLR: " + Environment.Version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short | |
lg = log --graph --date-order --pretty=format:'%C(bold blue)%h%C(reset) %C(bold green)[%an]%C(reset) %Cgreen%d%Creset %s, %C(yellow)%ad%C(reset)' --date=iso | |
lgl = log --graph --date-order --pretty=format:'%C(bold blue)%h%C(reset) %C(bold green)[%an]%C(reset) %Cgreen%d%Creset %s, %C(yellow)%ad%C(reset)' --date=iso -10 | |
a = add | |
ap = add -p | |
c = commit --verbose | |
ca = commit -a --verbose | |
cm = commit -m |