sosiristseng / sosiristseng.github.io Goto Github PK
View Code? Open in Web Editor NEWNotes, tips, and tricks
Home Page: https://sosiristseng.github.io/
License: MIT License
Notes, tips, and tricks
Home Page: https://sosiristseng.github.io/
License: MIT License
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 792 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 790 |
โณ Timeouts | 1 |
๐ Redirected | 0 |
๐ป Excluded | 60 |
โ Unknown | 0 |
๐ซ Errors | 1 |
using ModelingToolkit
using DifferentialEquations
using Plots
# Independent (time) and dependent (state) variables (x and RHS)
@variables t x(t) RHS(t)
# Setting parameters in the modeling
@parameters ฯ
# Differential operator w.r.t. time
D = Differential(t)
# Equations in MTK use the tilde character (`~`) as equality.
# Every MTK system requires a name. The `@named` macro simply ensures that the symbolic name matches the name in the REPL.
@named fol_separate = ODESystem([
RHS ~ (1 - x)/ฯ,
D(x) ~ RHS
])
model = structural_simplify(fol_separate)
f = ODEFunction(model, jac=true)
f.jac
f([0.0], [1.0], 0.0)
u0 = [x => 0.0]
tspan = (0.0, 10.0)
param = [ฯ => 3.0]
prob = ODEProblem(model, u0, tspan, param)
sol = solve(prob)
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 791 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 60 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 792 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 792 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/linkcheck.yml
actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
actions/cache v4@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
lycheeverse/lychee-action v1.10.0@2b973e86fc7b1f6b36a93795fe2c9c6ae1118621
peter-evans/create-issue-from-file v5@24452a72d85239eacf1468b0f1982a9f3fec4c94
.github/workflows/pages.yml
actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-python v5@82c7e631bb3cdc910f68e0081d67478d79c6982d
actions/cache v4@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
actions/configure-pages v5@983d7736d9b0ae728b81ab479565c72886d7745b
actions/upload-pages-artifact v3@56afc609e74202658d3ffba0e8f6dda462b719fa
actions/deploy-pages v4@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e
requirements.txt
mkdocs-material ==9.5.27
mkdocs-git-revision-date-localized-plugin ==1.2.6
mkdocs-ezlinked-plugin ==0.3.3
mkdocs-callouts ==1.13.2
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 792 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Status | Count |
---|---|
๐ Total | 851 |
โ Successful | 791 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Status | Count |
---|---|
๐ Total | 852 |
โ Successful | 792 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Status | Count |
---|---|
๐ Total | 854 |
โ Successful | 787 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 60 |
โ Unknown | 0 |
๐ซ Errors | 7 |
rsync -avh --delete /source/folder/ suername@ip::dest/folder/
In the NAS, the rsync service and rsync users should be enabled.
Status | Count |
---|---|
๐ Total | 849 |
โ Successful | 789 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
I can use the ${{ needs.<job>.result }}
variable without setting output flags.
# CI conclusion for GitHub status check
# Adaped from https://brunoscheufler.com/blog/2022-04-09-the-required-github-status-check-that-wasnt
CI:
needs: render
if: always()
runs-on: ubuntu-latest
steps:
- run: |
if [[ ${{ needs.render.result }} == "success" ]]; then
echo "Tests passed"
exit 0
else
echo "Tests failed"
exit 1
fi
Status | Count |
---|---|
๐ Total | 860 |
โ Successful | 788 |
โณ Timeouts | 1 |
๐ Redirected | 0 |
๐ป Excluded | 71 |
โ Unknown | 0 |
๐ซ Errors | 0 |
Status | Count |
---|---|
๐ Total | 859 |
โ Successful | 790 |
โณ Timeouts | 1 |
๐ Redirected | 0 |
๐ป Excluded | 68 |
โ Unknown | 0 |
๐ซ Errors | 0 |
Using jill.sh
to install Julia somehow avoids precompile cache invalidation in GitHub actions.
Status | Count |
---|---|
๐ Total | 849 |
โ Successful | 789 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 1 |
Sequence field: support.microsoft.com/en-us/office/field-codes-seq-sequence-field-062a387b-dfc9-4ef8-8235-29ee113d59be
Insert > Quick parts > Field
Press F9 to update field. Press Ctrl+ A (Select all) then F9 to update all fields.
Status | Count |
---|---|
๐ Total | 849 |
โ Successful | 789 |
โณ Timeouts | 1 |
๐ Redirected | 0 |
๐ป Excluded | 59 |
โ Unknown | 0 |
๐ซ Errors | 0 |
"""Change parameter(s) from an ODESystem and returns a parameter vector."""
function change_params(sys, ps...)
ModelingToolkit.varmap_to_vars(Dict(ps), parameters(sys); defaults = sys.defaults)
end
Status | Count |
---|---|
๐ Total | 860 |
โ Successful | 789 |
โณ Timeouts | 1 |
๐ Redirected | 0 |
๐ป Excluded | 70 |
โ Unknown | 0 |
๐ซ Errors | 0 |
Edit /etc/docker/daemon.json
, add the following entries
{
"data-root": "/home/docker",
"registry-mirrors": ["https://mirror.gcr.io"]
}
Then run
sudo service docker restart
Status | Count |
---|---|
๐ Total | 860 |
โ Successful | 788 |
โณ Timeouts | 1 |
๐ Redirected | 0 |
๐ป Excluded | 71 |
โ Unknown | 0 |
๐ซ Errors | 0 |
Status | Count |
---|---|
๐ Total | 854 |
โ Successful | 787 |
โณ Timeouts | 0 |
๐ Redirected | 0 |
๐ป Excluded | 60 |
โ Unknown | 0 |
๐ซ Errors | 7 |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.