Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
# npx react-native-init [ProjectName]
npx react-native-init RNNoExpo
or
npm install -g react-native-cli
react-native init [ProjectName]
{
// Place your snippets for typescriptreact here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
# source https://stackoverflow.com/questions/52961824/run-gatsby-with-docker-compose
# docker run -p 8000:80 -v $(pwd):/app -w [WORKDIR PATH] [IMAGE ID] yarn develop-docker
docker run -p 8000:80 -v $(pwd):/app -w /app fe9a4b9e181a yarn develop
# Source https://stackoverflow.com/a/56904912/3599272
# rom API 1.35+ you can use the -w (--workdir) option:
docker run -v $(pwd):/app -p 8000:8000 -w /app fe9a4b9e181a yarn develop
.css-class-name{
display: grid;
grid-template-columns: repeat(3, 120px);
}
# you must to bind a volume suing -v options and run the command at the end of docjer run command
docker run -v $(pwd):/app -p 8000:8000 4116b404dad9 yarn upgrade
# https://docs.docker.com/engine/reference/commandline/start/
docker start [container_name]