http://jsperf.com/single-rects
~
| /** | |
| * Converts a SeaportValidator error/warning code to a human readable string | |
| * @param code number indicating the error/warning code | |
| * @returns readable string | |
| */ | |
| export function getErrorMessage(code: number): string { | |
| switch (code) { | |
| case 100: | |
| return "Invalid order format. Ensure offer/consideration follow requirements"; | |
| case 200: |
| class Calc { | |
| /* | |
| ------------------------------------------ | |
| | rand:float - returns random float | |
| | | |
| | min:number - minimum value | |
| | max:number - maximum value | |
| | | |
| | Get a random float between two values |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |