run node schema.js
this will create output.sql
you will need to massage a few things:
- there are duplicate tables like rsv_address and rsv_revenue_and_balances
- address needs to be named to two separate things
Algorithms notes
for queues, you dequeue from 0 and enqueue at -1
function curry(func, ...argv) { | |
let prevArgs = argv; | |
function innerCurry(...args) { | |
prevArgs.push(...args) | |
if (prevArgs.length === func.length) { | |
return func(...prevArgs); | |
} | |
const fs = require("fs"); | |
const getTimerTemplate = (platform, importType, interval) => ` | |
[Unit] | |
Description=Run ${platform}-${importType} every 15 minutes | |
Requires=${platform}-${importType}.service | |
[Timer] | |
Unit=${platform}-${importType}.service | |
OnUnitInactiveSec=${interval} |
const StatsD = require("hot-shots"); | |
const statsdclient = new StatsD(); | |
const properties = Object.getOwnPropertyNames( | |
Object.getPrototypeOf(statsdclient) | |
); | |
const client = properties.reduce((prev, property) => { | |
if (property === "constructor") { |
gulpTask = (name, fn) => { | |
done = (err) => { | |
if (err) { | |
console.log(`Completed task "${name}" with error`); | |
console.error(err) | |
} | |
else { | |
console.log(`Completed task "${name}" successfully`); | |
} | |
} |
const stringToDom = (string) => document.createRange().createContextualFragment(string); | |
function viewTest(test) { | |
window.location.hash = test.id; | |
document.querySelector('#viewer').innerHTML = ` | |
<iframe src="${test.link}"></iframe> | |
`; | |
} | |
fetch('/tests') |
export function* getMissingRates(orderNumbers, labelType) { | |
const ratesDeltaByOrderNumber = {}; | |
const orderNumbersMissingRates = yield select(orderNumbersMissingRatesSelector, {orderNumbers, labelType}); | |
if (!orderNumbersMissingRates.length) { | |
return; | |
} | |
yield put(startUpdatingRates(orderNumbersMissingRates, labelType)); |
Create an object with all your action creators. This makes it easier to debug your application, since now you can dispatch actions from the console or from the Redux Devtools Extension.
ActionRegistry['data/accountBalance'].SET_ACCOUNT_BALANCE // "ordoro/data/accountBalance/SET_ACCOUNT_BALANCE"
ActionRegistry['data/accountBalance'].setAccountBalance(3) // {type: "ordoro/data/accountBalance/SET_ACCOUNT_BALANCE", payload: 3}