Run the following command on terminal
$ sudo apt-get install libcr-dev mpich2 mpich2-doc
| #!/usr/bin/env bash | |
| cd $(dirname $0) | |
| docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry -v "$(pwd)/target/":/home/rust/src/target ekidd/rust-musl-builder:nightly-2021-01-01 sudo chown -R rust:rust /home/rust/.cargo/git /home/rust/.cargo/registry /home/rust/src/target | |
| docker run --rm -it -v "$(pwd)":/home/rust/src -v cargo-git:/home/rust/.cargo/git -v cargo-registry:/home/rust/.cargo/registry -v "$(pwd)/target/":/home/rust/src/target ekidd/rust-musl-builder:nightly-2021-01-01 cargo build --release |
| SRC_DIR = src | |
| DST_DIR = build | |
| CSS_DIR = $(DST_DIR)/css | |
| SCSS_DIR = $(SRC_DIR)/scss | |
| SCSS_INCLUDES_DIR = $(SCSS_DIR)/includes | |
| SCSS_FILES = $(wildcard $(SCSS_DIR)/*.scss) | |
| CSS_FILES=$(patsubst $(SCSS_DIR)/%.scss, $(CSS_DIR)/%.css, $(SCSS_FILES)) |
| [Unit] | |
| Description=Python Web Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| Restart=always | |
| User=root | |
| WorkingDirectory=/share | |
| ExecStart=/usr/bin/python3 -m http.server 80 |
| -- HOWTO: | |
| -- after saving it, open with Script Editor (default) and run it | |
| -- PREREQUISITES: | |
| -- make sure your Keynote presentation is open in the background | |
| -- AFTER EXPORT: | |
| -- if you can't open the file due to encoding errors, open with Sublime (or another a text editor) and then "File / Save with encoding / UTF8" | |
| tell application "Keynote" |
| # .bash_profile is executed for login shells, | |
| # .bashrc is executed for interactive non-login shells. | |
| # We want the same behaviour for both, so we source .bashrc from .bash_profile. | |
| # Also, when .bash_profile exists, bash ignores .profile, so we have to source | |
| # it explicitly. | |
| if [ -f "$HOME/.profile" ]; then | |
| . "$HOME/.profile" | |
| fi |
| C:\Program Files (x86)\MSBuild\12.0\Bin\Microsoft.Common.CurrentVersion.targets | |
| <Target Name="_CheckForInvalidConfigurationAndPlatform"></Target> | |
| <Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="$(TargetPath)" /> | |
| <Target Name="BeforeBuild" /> | |
| <Target Name="AfterBuild" /> | |
| <Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"></Target> | |
| <Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" /> | |
| <Target Name="BeforeRebuild" /> | |
| <Target Name="AfterRebuild" /> | |
| <Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" /> |
| import argpase | |
| import fileinput | |
| if __name__ == '__main__': | |
| parser = ArgumentParser() | |
| parser.add_argument('--dummy', help='dummy argument') | |
| parser.add_argument('files', metavar='FILE', nargs='*', help='files to read, if empty, stdin is used') | |
| args = parser.parse_args() | |
| # If you would call fileinput.input() without files it would try to process all arguments. |
| using System; | |
| using System.Threading.Tasks; | |
| namespace Life | |
| { | |
| public class LifeSimulation | |
| { | |
| private bool[,] world; | |
| private bool[,] nextGeneration; | |
| private Task processTask; |