# docker-compose.yml
services:
docker-registry:
restart: always
image: registry:2
ports:
- "5000:5000"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use a base image with Node.js and Java (required for DynamoDB Local) | |
FROM openjdk:11-jdk-slim as dynamodb-admin | |
# Install Node.js and DynamoDB Admin | |
RUN apt-get update && apt-get install -y curl && \ | |
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ | |
apt-get install -y nodejs && \ | |
npm install -g dynamodb-admin | |
# Download DynamoDB Local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dayjs, OpUnitType } from 'dayjs'; | |
const isEqualTime = (expected: Dayjs, unit: OpUnitType = 'ms') => ({ | |
$$typeof: Symbol.for('jest.asymmetricMatcher'), | |
asymmetricMatch: (actual: Dayjs) => expected.isSame(actual, unit), | |
toAsymmetricMatcher: () => 'Dayjs<' + expected.toISOString() + '>', | |
}); | |
export default isEqualTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.parallax').css('background-positionY', ($(window).scrollTop() * 0.3) + 'px'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "E2E", | |
"type": "node", | |
"request": "launch", | |
"program": "${workspaceRoot}/node_modules/.bin/protractor", | |
"cwd": "${workspaceRoot}", | |
"console": "integratedTerminal", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
td { | |
white-space: normal; | |
white-space: -moz-pre-wrap; | |
white-space: -pre-wrap; | |
white-space: -o-pre-wrap; | |
word-wrap: break-word; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Table structure for table `area_districts` | |
-- | |
DROP TABLE IF EXISTS `area_districts`; | |
CREATE TABLE IF NOT EXISTS `area_districts` ( | |
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, | |
`province_id` bigint(20) UNSIGNED NOT NULL, | |
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
PRIMARY KEY (`id`), |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "Thành phố Hà Nội", | |
"districts": [ | |
{ | |
"name": "Quận Ba Đình", | |
"wards": [ | |
{ | |
"name": "Phường Phúc Xá" | |
}, |