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
@everywhere begin | |
using NeuralPDE, Flux, ModelingToolkit, GalacticOptim, Optim, DiffEqFlux | |
import ModelingToolkit: Interval, infimum, supremum | |
end | |
@everywhere begin | |
@parameters x, t | |
@variables u(..) | |
Dt = Differential(t) | |
Dx = Differential(x) |
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
@everywhere begin | |
using NeuralPDE, Flux, ModelingToolkit, GalacticOptim, Optim, DiffEqFlux | |
using Plots | |
import ModelingToolkit: Interval, infimum, supremum | |
end | |
@everywhere begin | |
@parameters t, x | |
@variables u(..) | |
Dt = Differential(t) |
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
@everywhere begin | |
using Plots | |
end | |
ts,xs = [infimum(d.domain):0.01:supremum(d.domain) for d in domains] | |
acum = [0;accumulate(+, length.(initθ))] | |
sep = [acum[i]+1 : acum[i+1] for i in 1:length(acum)-1] | |
minimizers_ = [res.minimizer[s] for s in sep] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# a cluster with 3 control-plane nodes and 3 workers | |
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
nodes: | |
- role: control-plane | |
image: kindest/node:v1.18.2@sha256:fdaa4138d1eaeacf5b547abd932ea812ed7272114457f293da0aec558f56b96d | |
- role: control-plane | |
image: kindest/node:v1.18.2@sha256:fdaa4138d1eaeacf5b547abd932ea812ed7272114457f293da0aec558f56b96d | |
- role: control-plane | |
image: kindest/node:v1.18.2@sha256:fdaa4138d1eaeacf5b547abd932ea812ed7272114457f293da0aec558f56b96d |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: master | |
pull_request: | |
branches: master |
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
#!/bin/bash | |
CONSUL_VERSION="1.5.3" | |
curl --silent --remote-name https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip | |
unzip consul_${CONSUL_VERSION}_linux_amd64.zip | |
sudo chown root:root consul | |
sudo mv consul /usr/local/bin/ | |
consul --version | |
complete -C /usr/local/bin/consul consul | |
sudo useradd --system --home /etc/consul.d --shell /bin/false consul | |
sudo mkdir --parents /opt/consul |
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
#!/bin/bash | |
curl -fsSL https://get.docker.com -o get-docker.sh | |
sh get-docker.sh | |
sudo usermod -aG docker ubuntu | |
sudo apt install -y unzip | |
export NOMAD_VERSION="0.9.3" | |
curl --silent --remote-name https://releases.hashicorp.com/nomad/${NOMAD_VERSION}/nomad_${NOMAD_VERSION}_linux_amd64.zip | |
unzip nomad_${NOMAD_VERSION}_linux_amd64.zip | |
sudo chown root:root nomad | |
sudo mv nomad /usr/local/bin/ |