This file contains hidden or 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
| from typing import List, TextIO | |
| class CVReporter: | |
| """ | |
| Accumulates parameter-work each MD step, using a single force group. | |
| The group should contain only the bias force (CustomCVForce) being steered. | |
| Work is computed via energy-parameter derivatives [1] | |
| ΔW = (∂U/∂s0) * Δs0 | |
This file contains hidden or 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
| from matplotlib import rcParams, cycler | |
| import matplotlib.pyplot as plt | |
| from matplotlib.ticker import AutoMinorLocator | |
| class Plotter(): | |
| def __init__(self): | |
| rcParams['text.usetex'] = True | |
| rcParams['font.family'] = 'sans-serif' | |
| rcParams['font.sans-serif'] = ['Arial'] | |
| rcParams['font.size'] = 16 |
This file contains hidden or 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
| import matplotlib.pyplot as plt | |
| from matplotlib import animation | |
| import math | |
| import numpy as np | |
| simulationTime = 4000 | |
| dt = 1 | |
| weights = [2 / 3, 1 / 6, 1 / 6] | |
| velocities = [0, -1, 1] |
This file contains hidden or 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
| import math | |
| import random | |
| class MonteCarlo: | |
| def __init__(self, function, iterations): | |
| """ | |
| Initializes the MonteCarlo integrator. | |
| :param function: Inject the function that the user whishes to integrate. |
This file contains hidden or 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
| import math | |
| import numpy as np | |
| import matplotlib.pyplot as plotter | |
| ###################### | |
| ## Some Definitions ## | |
| ###################### | |
| # u''(x) = lambda u(x) | |
| # y0 = u(x) and y1 = u'(x) | |
| # u(0)=0 and u(1)=0 |
This file contains hidden or 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
| import math | |
| import matplotlib.pyplot as plt | |
| from mpl_toolkits.mplot3d import Axes3D | |
| import numpy as np | |
| ####################### | |
| ## Lorenz Parameters ## | |
| ####################### | |
| params = { | |
| 'a': 4, # sigma |
This file contains hidden or 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
| <?php | |
| use Magister\Magister; | |
| $magister = new Magister($school, $username, $password); | |
| //Haal alle cijfers op. | |
| $magister->grades()->get(); |
This file contains hidden or 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
| <form class="well span8"> | |
| <div class="row"> | |
| <div class="span3"> | |
| <label>First Name</label> | |
| <input type="text" class="span3" placeholder="Your First Name"> | |
| <label>Last Name</label> | |
| <input type="text" class="span3" placeholder="Your Last Name"> | |
| <label>Email Address</label> | |
| <div class="input-prepend"> | |
| <span class="add-on"><i class="icon-envelope"></i></span><input type="text" id="inputIcon" class="span2" style="width:233px" placeholder="Your email address"> |
This file contains hidden or 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
| <?php | |
| class Bootstrap | |
| { | |
| private $_controller; | |
| public function __construct() | |
| { | |
| if(isset($_GET['view'])) |
This file contains hidden or 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
| <?php | |
| /* | |
| * Stan's MVC Framework v1.0 | |
| *------------------------------ | |
| * @author: Stanvk | |
| * @date: 19-5-2013 | |
| *------------------------------ | |
| * | |
| * !!This is a dummy controller!! |