この記事のあの画像を見てビビッと来てしまったので, 周りにいる人とErgodoxの購入検討をはじめました(随時更新)
➜ FalbaTech
選んでいくスタイル。
| # Assumes the database container is named 'db' | |
| DOCKER_DB_NAME="$(docker-compose ps -q db)" | |
| DB_HOSTNAME=db | |
| DB_USER=postgres | |
| LOCAL_DUMP_PATH="path/to/local.dump" | |
| docker-compose up -d db | |
| docker exec -i "${DOCKER_DB_NAME}" pg_restore -C --clean --no-acl --no-owner -U "${DB_USER}" -d "${DB_HOSTNAME}" < "${LOCAL_DUMP_PATH}" | |
| docker-compose stop db |
この記事のあの画像を見てビビッと来てしまったので, 周りにいる人とErgodoxの購入検討をはじめました(随時更新)
➜ FalbaTech
選んでいくスタイル。
| import {renderToStaticMarkup} from 'react-dom/server'; | |
| import {html as beautifyHTML} from 'js-beautify'; | |
| import {diffWords} from 'diff'; | |
| import chalk from 'chalk'; | |
| import {fail} from 'assert'; | |
| const colors = new chalk.constructor({ | |
| enabled: !!global.top.karma | |
| }); |
| // assertions/compareScreenshot.js | |
| var resemble = require('resemble'), | |
| fs = require('fs'); | |
| exports.assertion = function(filename, expected) { | |
| var screenshotPath = 'test/screenshots/', | |
| baselinePath = screenshotPath + 'baseline/' + filename, | |
| resultPath = screenshotPath + 'results/' + filename, | |
| diffPath = screenshotPath + 'diffs/' + filename; |
| ////////////////////////// | |
| // Some Custom Matchers // | |
| ////////////////////////// | |
| "use strict"; | |
| // Usage: | |
| // Add `require('./customMatchers.js');` in your onPrepare block or file | |
| // Config | |
| var specTimeoutMs = 10000; // 10 secs |
| simply.text({ | |
| title: 'Accel Demo', | |
| body: 'Press up to stream or select to peek.', | |
| }, true); | |
| /** | |
| * Use simply.accelConfig({ rate: 100, samples: 25 }) to configure | |
| * the hertz and accel data per batch for the accelData events. | |
| * See the API reference at simplyjs.io for more information. | |
| */ |