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
#!/bin/sh -e | |
# Put your custom commands here that should be executed once | |
# the system init finished. By default this file does nothing. | |
# Use dhcp hosts for dns lookup | |
echo "Updating /etc/dnsmasq.conf" | |
grep -qF "addn-hosts" /etc/dnsmasq.conf || echo "addn-hosts=/tmp/dhcpd_hostlist" >> /etc/dnsmasq.conf |
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
<?php | |
// http://www.reddit.com/r/webdev/comments/2yg649/saving_php_file_as_object/ | |
// Class that keeps track of objects | |
class ImaginaryConversion { | |
public $functions; | |
// Constructor is called when the class is instantiated with the new keyword | |
public function __construct($filename) { | |
// Return all defined functions | |
$before = get_defined_functions(); |
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
module Main where | |
import Graphics.EasyPlot | |
dt = 0.001 -- Timestep | |
tau = 0.05 -- Decay constant | |
n0 = 1000 -- Initial number of particles | |
main = do | |
plot X11 $ [Data2D [Title "Euler", Color Red, Style Lines] [] numerical, |