This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am rafarochas91 on github. | |
| * I am rafarochas91 (https://keybase.io/rafarochas91) on keybase. | |
| * I have a public key ASC6QGwj9UpCKg6sUPDgO1hwneHzbEVCna-iNEEwROvXDwo | |
| To claim this, I am signing this object: |
This file contains hidden or 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
| FROM node:latest | |
| # RafaRochaS91 | |
| RUN mkdir -p /usr/src/app | |
| # Create app directory | |
| WORKDIR /usr/src/app | |
| # Install app dependencies | |
| # wildcard for both package.json and package-lock.json | |
| COPY package*.json ./ |
This file contains hidden or 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
| /* | |
| * This regular expression looks for: | |
| * Passwords will contain at least 1 upper case letter | |
| * Passwords will contain at least 1 lower case letter | |
| * Passwords will contain at least 1 number or special character | |
| * There is no length validation (min, max) in this regex! | |
| */ | |
| const regex = new Regex(((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$)); | |
| const isPasswordValid = (password) => regex.test(password); |
This file contains hidden or 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
| # container with name mongo-dev from image mongodb | |
| # mounting a volume at /opt/mongodb:/data/db and exposing port 27017 | |
| $ docker run --name mongo-dev -d -v /opt/mongodb:/data/db -p 27017 mongodb |
This file contains hidden or 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
| // window.location.href => returns url | |
| /** | |
| * Objectivo é do url retornar: | |
| * | |
| * um objecto = { key:[...value], ... } | |
| * | |
| * exemplo: url => https://github.com/?foo=1,2&bar=1,2 | |
| * fn returns => { foo:[1,2],bar:[1,2] } | |
| */ |