Build ODE in Linux
simple approach (can't choose revelant things):
sudo apt add libode-dev
otherwise use premake as explained below
simple approach (can't choose revelant things):
sudo apt add libode-dev
otherwise use premake as explained below
Your GPS device has messed up and the recorded route has a faulty segment?
This code iterates over recorded points, finding biggest distance discrepancy and allowing you to remove it and save an altered XML version leaving out those measurements.
import http from 'http'; | |
import https from 'https'; | |
import fetch, { Response } from 'node-fetch'; | |
import { AbortController } from 'abort-controller'; | |
const DEFAULT_TIMEOUT = 10000; | |
const httpAgent = new http.Agent({ | |
keepAlive: true, |
const http = require('http'); | |
const https = require('https'); | |
const HEADERS = {}; | |
function get(url, body, moreHeaders) { | |
const prot = url.indexOf('https:') === 0 ? https : http; | |
return new Promise((resolve, reject) => { | |
const r = prot.request( | |
url, |
const fs = require('fs'); | |
const readline = require('readline'); | |
async function* readJsonlGen(filename) { | |
const lineReader = readline.createInterface({ | |
input: fs.createReadStream(filename), | |
}); | |
let i = 0; | |
for await (const line of lineReader) { |
function spy(fn, prot = fn.prototype) { | |
function proxy() { | |
const args = Array.prototype.slice.call(arguments); | |
proxy.calls.push(args); | |
proxy.called = true; | |
return fn.apply(this, args); | |
} | |
proxy.prototype = prot; |
I hereby claim:
To claim this, I am signing this object:
// yarn list --json > modules.json | |
const fs = require('fs'); | |
const O = require('./modules.json'); | |
function visit(o) { | |
if (typeof o === 'object' && o !== null) { | |
if (o instanceof Array) { | |
// change array (noop) |