Skip to content

Commit

Permalink
reduce g to retain a bit of sin fluctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemGr committed Jul 27, 2024
1 parent 8c611da commit 74aa69a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion data/acqui/acqui.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ if (require.main === module) (async function() {
line = line.trim()
if (line === '') {term.processExit (0); return}

if (line.startsWith ('todo/')) {await readNote (term, line, [line.substring (5)]); return}
if (line.startsWith ('todo/')) {await readNote (term, 'todo', [line.substring (5)]); return}
if (line == 'todo') {await readNote (term, line, []); return}

const tags = new Set()
Expand Down
2 changes: 1 addition & 1 deletion data/common-crawl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ flate2 = "1"
fomat-macros = "0.3"
#glob = "0.3"
gstuff = {version = "0.7", path = "../../../gstuff.rs", features = ["nightly", "crossterm", "rdtsc"]}
#indexmap = {version = "1", features = ["serde-1"]}
#indexmap = {version = "2", features = ["serde"]}
#inlinable_string = {version = "0.1", features = ["serde"]}
#nom = "6"
#once_cell = {version = "1", features = ["parking_lot"]}
Expand Down
4 changes: 1 addition & 3 deletions data/ext-driver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ serde = {version = "1", features = ["derive"]}
serde_json = "1"
serde_yaml = "0.8"
serde_derive = "1"

# Pinned until a Rust upgrade
smallvec = "=1.5"
smallvec = "1"
4 changes: 1 addition & 3 deletions data/firefox/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@

# tbd

tbd
cf. https://github.com/archivy/archivy-firefox
2 changes: 1 addition & 1 deletion data/firefox/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const date = require ('date-and-time');
const fs = require ('fs'); const fsp = fs.promises;
const {knuthShuffle} = require ('knuth-shuffle'); // https://stackoverflow.com/a/2450976/257568
const lz4 = require ('lz4');
const {log, snooze} = require ('log');
const {log, snooze} = require ('llog');
const os = require ('os');
const yaml = require ('yaml'); // https://github.com/eemeli/yaml

Expand Down
2 changes: 1 addition & 1 deletion data/math/svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def sin():
plt.grid (True)

prob = svm.svm_problem (labels[:fold], features[:fold])
m = svm.svm_train (prob, '-s 3 -t 2 -q') # epsilon RBF
m = svm.svm_train (prob, '-s 3 -t 2 -q -c 1 -g .1') # epsilon RBF, C, γ
y, _acc, _vals = svm.svm_predict (labels, features, m, '-q')
plt.subplot (2, 1, 2)
plt.plot (x, y, label= 'svm')
Expand Down
4 changes: 2 additions & 2 deletions data/steam/steam.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const {assert} = require ('console');
const fs = require ('fs'); const fsp = fs.promises;
const {knuthShuffle} = require ('knuth-shuffle'); // https://stackoverflow.com/a/2450976/257568
const os = require ('os');
const {log, snooze} = require ('log');
const {log, snooze} = require ('llog');
const {webkit, Page} = require ('playwright-webkit');
const yaml = require ('yaml'); // https://github.com/eemeli/yaml

Expand Down Expand Up @@ -126,7 +126,7 @@ exports.syncDb = async function (userId, fresh) {
* @returns {Promise<Game[]>} Games listed locally in “steamapps”
*/
exports.installed = async function() {
const steamapps = '/Program Files (x86)/Steam/steamapps'
const steamapps = fs.existsSync ('d:/steam/steamapps') ? 'd:/steam/steamapps' : '/Program Files (x86)/Steam/steamapps'
const files = await fsp.readdir (steamapps)
const games = []
for (const fname of files) {
Expand Down

0 comments on commit 74aa69a

Please sign in to comment.