One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| { | |
| "presets": ["react-native"] | |
| } |
| android { | |
| signingConfigs { | |
| release | |
| } | |
| buildTypes { | |
| release { | |
| signingConfig signingConfigs.release | |
| } |
heroku restartheroku pg:reset DATABASE (no need to change the DATABASE)heroku run rake db:migrateheroku run rake db:seed (if you have seed)One liner
heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate
| RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache | |
| npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache | |
| Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache |
| [ | |
| { | |
| "value": -12, | |
| "text": "(GMT -12:00) Eniwetok, Kwajalein" | |
| }, | |
| { | |
| "value": -11, | |
| "text": "(GMT -11:00) Midway Island, Samoa" | |
| }, | |
| { |
| /** | |
| Problem: | |
| You have a javascript array that likely has some duplicate values and you would like a count of those values. | |
| Solution: | |
| Try this schnippet out. | |
| */ |
| User.aggregate([ | |
| { | |
| /* Filter out users who have not yet subscribed */ | |
| $match: { | |
| /* "joined" is an ISODate field */ | |
| 'subscription.joined': {$ne: null} | |
| } | |
| }, | |
| { | |
| /* group by year and month of the subscription event */ |