Mobile = /^9989[012345789][0-9]{7}$/
All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/
Mobile = /^9989[012345789][0-9]{7}$/
All = /^998(9[012345789]|6[125679]|7[01234569])[0-9]{7}$/
| // check version | |
| node -v || node --version | |
| // list installed versions of node (via nvm) | |
| nvm ls | |
| // install specific version of node | |
| nvm install 6.9.2 | |
| // set default version of node |
Install composer like so:
sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
After installation, you should then symlink it by running command:
sudo ln -s /opt/lampp/bin/php /usr/local/bin/php
Then run the command below to allow the 'composer' command to be run globally (this will be run from within the folder where you've just installed composer in which a composer.phar file has just been created):
| query IntrospectionQuery { | |
| __schema { | |
| queryType { name } | |
| mutationType { name } | |
| subscriptionType { name } | |
| types { | |
| ...FullType | |
| } | |
| directives { |
| // LONG VERSION WITH ERROR LOGGING | |
| function getValueByObjectPath (obj, path) { | |
| const pathSplit = path.split('.'); | |
| return pathSplit.reduce((value, pathPart, depth) => { | |
| try { | |
| return value[pathPart]; | |
| } | |
| catch (err) { | |
| let pathSoFar = ''; | |
| for (let i = 0; i < depth; i++) { |