docker run -it --name container-name -p 8000:80 -v "$PWD":/container-path image-name
docker run -it --name container-name --link container-another-name:image-name -p 8080:80 -v "$PWD":/var/www/html -d image-name
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
{ | |
"primary": "#004b23", | |
"secondary": "#006400", | |
"tertiary": "#008000" | |
} |
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
{ | |
"primary": "#03045e", | |
"secondary": "#023e8a", | |
"tertiary": "#0077b6" | |
} |
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
function convertCsvToJson(csv) { | |
const [csvHeaders, ...csvContent] = csv.split('\n'); | |
const headers = csvHeaders | |
.split(',') | |
.map(item => item.trim()); | |
const content = csvContent | |
.filter(item => item !== '') | |
.map(item => item.split(',')); |