Skip to content

Commit

Permalink
Remove chrome alias
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Feb 12, 2025
1 parent 8a58670 commit 204cf8e
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 44 deletions.
3 changes: 3 additions & 0 deletions bin/chrome
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec google-chrome-stable --process-per-tab "$@"
1 change: 0 additions & 1 deletion dotfiles/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ alias apthi='bash -c "sudo apt -o Acquire::http::Proxy=http://\$0 install \$1"'
alias base58='basex -i $(echo {0..9} {A..Z} {a..z} | tr -d " 0IOl")'
alias base62='basex -i $(echo {0..9} {A..Z} {a..z} | tr -d " ")'
alias bcrypt='htpasswd -bnBC 10 ""'
alias chrome='google-chrome-stable --process-per-tab'
alias cmemchk='valgrind --tool=memcheck --leak-check=full'
alias code='code -n'
alias datev='date +%Y%m%d%H%M%S'
Expand Down
82 changes: 41 additions & 41 deletions roles/socks/files/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,64 @@
{
"weights": [
[
1.1158162355422974,
12.79687786102295,
6.445849895477295,
-5.942205429077148,
-3.4379892349243164,
0.5949000716209412,
11.106204986572266,
5.247542858123779
2.807393789291382,
0.05913884937763214,
-3.1251354217529297,
-1.3170239925384521,
-1.6262484788894653,
1.3777450323104858,
5.109156131744385,
-8.826294898986816
],
[
-4.888609409332275,
-5.845180988311768,
-12.751696586608887,
-3.45693302154541,
3.5650904178619385,
-3.7927043437957764,
13.226527214050293,
6.2137627601623535
6.466224670410156,
3.3529841899871826,
-8.989187240600586,
11.816427230834961,
-4.6401848793029785,
-5.501560688018799,
8.49248218536377,
12.803569793701172
],
[
-6.861072540283203,
-12.902667045593262,
1.483133316040039,
-6.527715682983398,
3.0804240703582764,
0.6456403732299805,
-2.784463882446289,
-2.2668745517730713
-8.83187484741211,
0.05353333055973053,
-5.8564887046813965,
-7.418641567230225,
1.8627042770385742,
-4.17085599899292,
5.070806503295898,
-8.036076545715332
],
[
-0.5905630588531494,
0.0964685007929802,
0.3828622102737427,
-1.032904028892517,
3.0590434074401855,
8.665851593017578,
-2.880449056625366,
5.447422027587891
-13.580711364746094,
-8.380035400390625,
-6.125111103057861,
-9.528573989868164,
-1.672905683517456,
0.03310837224125862,
-3.4495983123779297,
-12.75858211517334
]
],
"biases": [
-21.283119201660156,
-22.37175750732422,
27.831653594970703,
-4.857760429382324
-21.621625900268555,
-7.856735706329346,
3.4102694988250732,
8.910651206970215
]
},
{
"weights": [
[
1.370590090751648,
-1.9021087884902954,
2.5455360412597656,
4.274608612060547
-2.9519970417022705,
-1.6948856115341187,
-0.877220869064331,
-13.297314643859863
]
],
"biases": [
-2.1693239212036133
2.485546112060547
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion roles/socks/files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"build": "tsc main.ts",
"start": "npm run build && node main.js",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(38); process.exit()'",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(39); process.exit()'",
"train": "npm run build && rm -f model.json && node -e 'require(\"./train.js\").train(); process.exit()'"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion roles/socks/files/train.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const log = LoggerFactory.getLogger("\t\b\b\b\b\b\b\b")
log.level = "debug"

const data = [
...JSON.parse(fs.readFileSync("./data.35.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.36.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.37.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.38.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.39.json", "utf-8")),
]

const net = new brain.NeuralNetwork()
Expand Down

0 comments on commit 204cf8e

Please sign in to comment.