Skip to content

Instantly share code, notes, and snippets.

View alexey-krivoshapko's full-sized avatar

Alexey Krivoshapko alexey-krivoshapko

View GitHub Profile
@alexey-krivoshapko
alexey-krivoshapko / pull-remote-db.sh
Created April 9, 2019 11:37
Pull the remote database to the MySQL Docker container.
#!/bin/bash
# Production credentials
DB_PROD_HOST=""
DB_PROD_NAME=""
DB_PROD_USER=""
DB_PROD_PASS=""
# Local credentials
DB_LOCAL_HOST=""
import { getBoardAsString, getXYByPosition, getElementByXY, getBoardSize, getHeadPosition } from './utils';
import {ELEMENT, COMMANDS} from './constants';
export class Bot {
constructor() {
this.init();
}
run(board) {