Added DRL post and svg stuff
This commit is contained in:
parent
ade8feb556
commit
44d34d1788
26
README.md
26
README.md
|
@ -0,0 +1,26 @@
|
||||||
|
|
||||||
|
## ForwardFire.net website
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
|
||||||
|
```
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Add post
|
||||||
|
|
||||||
|
```
|
||||||
|
hexo new post "Working on DRL"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Test
|
||||||
|
|
||||||
|
```
|
||||||
|
npm run-script server
|
||||||
|
```
|
||||||
|
|
||||||
|
### Deploy
|
||||||
|
|
||||||
|
```
|
||||||
|
npm run-script deploy
|
||||||
|
```
|
|
@ -107,7 +107,9 @@ theme: custom
|
||||||
# Deployment
|
# Deployment
|
||||||
## Docs: https://hexo.io/docs/deployment.html
|
## Docs: https://hexo.io/docs/deployment.html
|
||||||
deploy:
|
deploy:
|
||||||
type: ''
|
type: shell
|
||||||
|
command: scp -r public/* willemc@10.208.255.33:/var/www/www.forwardfire.net
|
||||||
|
|
||||||
|
|
||||||
# searchdb
|
# searchdb
|
||||||
search:
|
search:
|
||||||
|
@ -115,3 +117,7 @@ search:
|
||||||
field: post
|
field: post
|
||||||
format: html
|
format: html
|
||||||
limit: 10000
|
limit: 10000
|
||||||
|
|
||||||
|
# hexo-graphviz
|
||||||
|
graphviz:
|
||||||
|
enable: true
|
||||||
|
|
31
package-lock.json
generated
31
package-lock.json
generated
|
@ -597,6 +597,14 @@
|
||||||
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
|
||||||
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU="
|
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU="
|
||||||
},
|
},
|
||||||
|
"deep-assign": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/deep-assign/-/deep-assign-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-YX2i9XjJ7h5q/aQ/IM9PEwEnDqETAIYbggmdDB3HLTlSgo1CxPsj6pvhPG68rq6SVE0+p+6Ywsm5fTYNrYtBWw==",
|
||||||
|
"requires": {
|
||||||
|
"is-obj": "^1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"deepmerge": {
|
"deepmerge": {
|
||||||
"version": "4.2.2",
|
"version": "4.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
|
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz",
|
||||||
|
@ -1205,6 +1213,11 @@
|
||||||
"safe-json-stringify": "~1"
|
"safe-json-stringify": "~1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hexo-deployer-shell": {
|
||||||
|
"version": "0.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/hexo-deployer-shell/-/hexo-deployer-shell-0.2.3.tgz",
|
||||||
|
"integrity": "sha1-FMR5YljzSGbfZYFOcmv10Q/+noY="
|
||||||
|
},
|
||||||
"hexo-front-matter": {
|
"hexo-front-matter": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/hexo-front-matter/-/hexo-front-matter-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/hexo-front-matter/-/hexo-front-matter-1.0.0.tgz",
|
||||||
|
@ -1271,6 +1284,14 @@
|
||||||
"hexo-pagination": "1.0.0"
|
"hexo-pagination": "1.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hexo-graphviz": {
|
||||||
|
"version": "1.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/hexo-graphviz/-/hexo-graphviz-1.0.2.tgz",
|
||||||
|
"integrity": "sha512-7Fa/BA7L9nCbd8YWaiSvoLizy8U1mW0ekriO7Taarqcr9IHhMQi3qsWaoB7HhszpsMGMtv5V75skeFlymJ3Wzw==",
|
||||||
|
"requires": {
|
||||||
|
"deep-assign": "^3.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hexo-i18n": {
|
"hexo-i18n": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/hexo-i18n/-/hexo-i18n-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/hexo-i18n/-/hexo-i18n-1.0.0.tgz",
|
||||||
|
@ -1701,6 +1722,11 @@
|
||||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
||||||
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="
|
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="
|
||||||
},
|
},
|
||||||
|
"is-obj": {
|
||||||
|
"version": "1.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
|
||||||
|
"integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8="
|
||||||
|
},
|
||||||
"is-plain-object": {
|
"is-plain-object": {
|
||||||
"version": "2.0.4",
|
"version": "2.0.4",
|
||||||
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz",
|
||||||
|
@ -3593,6 +3619,11 @@
|
||||||
"has-flag": "^4.0.0"
|
"has-flag": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"svg-pan-zoom": {
|
||||||
|
"version": "3.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/svg-pan-zoom/-/svg-pan-zoom-3.6.1.tgz",
|
||||||
|
"integrity": "sha512-JaKkGHHfGvRrcMPdJWkssLBeWqM+Isg/a09H7kgNNajT1cX5AztDTNs+C8UzpCxjCTRrG34WbquwaovZbmSk9g=="
|
||||||
|
},
|
||||||
"swig-extras": {
|
"swig-extras": {
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/swig-extras/-/swig-extras-0.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/swig-extras/-/swig-extras-0.0.1.tgz",
|
||||||
|
|
|
@ -13,15 +13,18 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"hexo": "^4.0.0",
|
"hexo": "^4.0.0",
|
||||||
|
"hexo-deployer-shell": "^0.2.3",
|
||||||
"hexo-generator-archive": "^1.0.0",
|
"hexo-generator-archive": "^1.0.0",
|
||||||
"hexo-generator-category": "^1.0.0",
|
"hexo-generator-category": "^1.0.0",
|
||||||
"hexo-generator-index": "^1.0.0",
|
"hexo-generator-index": "^1.0.0",
|
||||||
"hexo-generator-searchdb": "^1.2.0",
|
"hexo-generator-searchdb": "^1.2.0",
|
||||||
"hexo-generator-tag": "^1.0.0",
|
"hexo-generator-tag": "^1.0.0",
|
||||||
|
"hexo-graphviz": "^1.0.2",
|
||||||
"hexo-renderer-ejs": "^1.0.0",
|
"hexo-renderer-ejs": "^1.0.0",
|
||||||
"hexo-renderer-less": "^1.0.0",
|
"hexo-renderer-less": "^1.0.0",
|
||||||
"hexo-renderer-marked": "^2.0.0",
|
"hexo-renderer-marked": "^2.0.0",
|
||||||
"hexo-renderer-stylus": "^1.1.0",
|
"hexo-renderer-stylus": "^1.1.0",
|
||||||
"hexo-server": "^1.0.0"
|
"hexo-server": "^1.0.0",
|
||||||
|
"svg-pan-zoom": "^3.6.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,81 @@ tags:
|
||||||
### Unit groups
|
### Unit groups
|
||||||
![Unit groups](unitxc-groups.png "Unit groups")
|
![Unit groups](unitxc-groups.png "Unit groups")
|
||||||
|
|
||||||
|
```graphviz
|
||||||
|
digraph G {
|
||||||
|
kelvin[shape=box,style=filled,color=".9 0.5 0.9",label="kelvin\nK\nkelvin\n(thermodynamic_temperature)",labelloc=b];
|
||||||
|
kelvin -> kelvin[color=red,label="174"];
|
||||||
|
ampere[shape=box,style=filled,color=".9 0.5 0.9",label="ampere\nA\nampere\n(electric_current)",labelloc=b];
|
||||||
|
ampere -> ampere[color=red,label="29"];
|
||||||
|
candela[shape=box,style=filled,color=".9 0.5 0.9",label="candela\ncd\ncandela\n(luminous_intensity)",labelloc=b];
|
||||||
|
candela -> candela[color=red,label="29"];
|
||||||
|
mole[shape=box,style=filled,color=".9 0.5 0.9",label="mole\nmol\nmole\n(amount_of_substance)",labelloc=b];
|
||||||
|
mole -> mole[color=red,label="30"];
|
||||||
|
metre[shape=box,style=filled,color=".9 0.5 0.9",label="metre\nm\nmetre\n(length)",labelloc=b];
|
||||||
|
metre -> metre[color=red,label="348"];
|
||||||
|
kilogram[shape=box,style=filled,color=".9 0.5 0.9",label="kilogram\ng\ngram\n(mass)",labelloc=b];
|
||||||
|
kilogram -> kilogram[color=red,label="174"];
|
||||||
|
second[shape=box,style=filled,color=".9 0.5 0.9",label="second\ns\nsecond\n(time)",labelloc=b];
|
||||||
|
second -> second[color=red,label="174"];
|
||||||
|
square_metre[label="square_metre\nm²\nsquare metre\n(area)",labelloc=b];
|
||||||
|
square_metre -> square_metre[color=red,label="351"];
|
||||||
|
metre -> square_metre[dir=none];
|
||||||
|
cubic_metre[label="cubic_metre\nm³\ncubic metre\n(volume)",labelloc=b];
|
||||||
|
cubic_metre -> cubic_metre[color=red,label="348"];
|
||||||
|
metre -> cubic_metre[dir=none];
|
||||||
|
metre_per_second[label="metre_per_second\nm/s\nmetre per second\n(speed,velocity)",labelloc=b];
|
||||||
|
metre_per_second -> metre_per_second[color=red,label="60552"];
|
||||||
|
metre -> metre_per_second[dir=none];
|
||||||
|
second -> metre_per_second[dir=none];
|
||||||
|
cubic_metre_per_second[label="cubic_metre_per_second\nm³/s\ncubic metre per second\n(volumetric_flow)",labelloc=b];
|
||||||
|
cubic_metre_per_second -> cubic_metre_per_second[color=red,label="60552"];
|
||||||
|
cubic_metre -> cubic_metre_per_second[dir=none];
|
||||||
|
second -> cubic_metre_per_second[dir=none];
|
||||||
|
metre_per_second_squared[label="metre_per_second_squared\nm/s²\nMeter per second squared\n(acceleration)",labelloc=b];
|
||||||
|
metre_per_second_squared -> metre_per_second_squared[color=red,label="10536049"];
|
||||||
|
metre_per_second -> metre_per_second_squared[dir=none];
|
||||||
|
second -> metre_per_second_squared[dir=none];
|
||||||
|
metre_per_second_cubed[label="metre_per_second_cubed\nm/s²/s\nMeter per second squared per second\n(jerk,jolt,surge,lurch)",labelloc=b];
|
||||||
|
metre_per_second_cubed -> metre_per_second_cubed[color=red,label="1833272526"];
|
||||||
|
metre_per_second_squared -> metre_per_second_cubed[dir=none];
|
||||||
|
second -> metre_per_second_cubed[dir=none];
|
||||||
|
metre_per_quartic_second[label="metre_per_quartic_second\nm/s²/s/s\nMeter per second squared per second per second\n(snap,jounce)",labelloc=b];
|
||||||
|
metre_per_quartic_second -> metre_per_quartic_second[color=red,label="318989419524"];
|
||||||
|
metre_per_second_cubed -> metre_per_quartic_second[dir=none];
|
||||||
|
second -> metre_per_quartic_second[dir=none];
|
||||||
|
newton[label="newton\nN\nnewton\n(force,weight)",labelloc=b];
|
||||||
|
newton -> newton[color=red,label="1833272527"];
|
||||||
|
kilogram -> newton[dir=none];
|
||||||
|
metre_per_second_squared -> newton[dir=none];
|
||||||
|
kilogram_per_square_metre[label="kilogram_per_square_metre\ng/m²\ngram per square metre\n(area_density)",labelloc=b];
|
||||||
|
kilogram_per_square_metre -> kilogram_per_square_metre[color=red,label="61074"];
|
||||||
|
kilogram -> kilogram_per_square_metre[dir=none];
|
||||||
|
square_metre -> kilogram_per_square_metre[dir=none];
|
||||||
|
kilogram_per_cubic_metre[label="kilogram_per_cubic_metre\ng/m³\ngram per cubic metre\n(density,mass_density)",labelloc=b];
|
||||||
|
kilogram_per_cubic_metre -> kilogram_per_cubic_metre[color=red,label="60552"];
|
||||||
|
kilogram -> kilogram_per_cubic_metre[dir=none];
|
||||||
|
cubic_metre -> kilogram_per_cubic_metre[dir=none];
|
||||||
|
cubic_metre_per_kilogram[label="cubic_metre_per_kilogram\nm³/g\ncubic metre per gram\n(specific_volume)",labelloc=b];
|
||||||
|
cubic_metre_per_kilogram -> cubic_metre_per_kilogram[color=red,label="60552"];
|
||||||
|
cubic_metre -> cubic_metre_per_kilogram[dir=none];
|
||||||
|
kilogram -> cubic_metre_per_kilogram[dir=none];
|
||||||
|
mole_per_cubic_metre[label="mole_per_cubic_metre\nmol/m³\nmole per cubic metre\n(molarity)",labelloc=b];
|
||||||
|
mole_per_cubic_metre -> mole_per_cubic_metre[color=red,label="10440"];
|
||||||
|
mole -> mole_per_cubic_metre[dir=none];
|
||||||
|
cubic_metre -> mole_per_cubic_metre[dir=none];
|
||||||
|
cubic_metre_per_mole[label="cubic_metre_per_mole\nm³/mol\ncubic metre per mole\n(molar_volume)",labelloc=b];
|
||||||
|
cubic_metre_per_mole -> cubic_metre_per_mole[color=red,label="10440"];
|
||||||
|
cubic_metre -> cubic_metre_per_mole[dir=none];
|
||||||
|
mole -> cubic_metre_per_mole[dir=none];
|
||||||
|
newton_per_second[label="newton_per_second\nkg/m/s/s/s\nkilogram per metre per second per second per second\n(yank)",labelloc=b];
|
||||||
|
newton_per_second -> newton_per_second[color=red,label="318989419698"];
|
||||||
|
newton -> newton_per_second[dir=none];
|
||||||
|
second -> newton_per_second[dir=none];
|
||||||
|
Stats[shape=box,color=".9 0.2 0.8",label="unit groups: 21\ntotal units: 641656246143",labelloc=b];
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Building groups
|
### Building groups
|
||||||
|
|
||||||
``` java
|
``` java
|
||||||
|
|
10
source/_posts/Working-on-DRL.md
Normal file
10
source/_posts/Working-on-DRL.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
title: Working on DRL
|
||||||
|
date: 2020-10-01 01:43:17
|
||||||
|
tags: DRL
|
||||||
|
---
|
||||||
|
|
||||||
|
This year 2020 I started my own company named; distributedrebirth
|
||||||
|
There is some tech work there but that is not the main focus.
|
||||||
|
|
||||||
|
site: http://DistributedRebirth.Love
|
|
@ -17,5 +17,34 @@
|
||||||
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@11/js/layer/layer.js") %>
|
<%- js("https://cdn.jsdelivr.net/gh/meethigher/cdn@11/js/layer/layer.js") %>
|
||||||
<%- js("js/meethigher.js") %>
|
<%- js("js/meethigher.js") %>
|
||||||
<%- js("js/toolbar.js") %>
|
<%- js("js/toolbar.js") %>
|
||||||
|
<%- js("js/svg-pan-zoom.min.js") %>
|
||||||
|
<% if (theme.graphviz.enable) { %>
|
||||||
|
<script src='https://cdnjs.cloudflare.com/ajax/libs/viz.js/1.7.1/viz.js'></script>
|
||||||
|
<script>
|
||||||
|
String.prototype.replaceAll = function(search, replacement) {
|
||||||
|
var target = this;
|
||||||
|
return target.split(search).join(replacement);
|
||||||
|
};
|
||||||
|
|
||||||
|
let vizObjects = document.querySelectorAll('.graphviz');
|
||||||
|
|
||||||
|
for (let item of vizObjects) {
|
||||||
|
let svg = undefined;
|
||||||
|
try {
|
||||||
|
//svg = Viz(item.textContent.replaceAll('–', '--'), 'svg');
|
||||||
|
svg = Viz(item.textContent, 'svg');
|
||||||
|
var panZoomTiger = svgPanZoom(svg, {
|
||||||
|
controlIconsEnabled: true,
|
||||||
|
fit: true,
|
||||||
|
center: true,
|
||||||
|
});
|
||||||
|
} catch(e) {
|
||||||
|
//svg = `<pre class="error">${e}</pre>`;
|
||||||
|
console.log("got "+e);
|
||||||
|
}
|
||||||
|
item.outerHTML = svg;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<% } %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
3
themes/custom/source/js/svg-pan-zoom.min.js
vendored
Normal file
3
themes/custom/source/js/svg-pan-zoom.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue