- http://stackoverflow.com/questions/804115 (
rebasevsmerge). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebasevsmerge) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse) - http://stackoverflow.com/questions/292357 (
pullvsfetch) - http://stackoverflow.com/questions/39651 (
stashvsbranch) - http://stackoverflow.com/questions/8358035 (
resetvscheckoutvsrevert)
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
| Stacks: | |
| >> Achieving an undo operation | |
| >> Browser/app back button | |
| >> Error stacks in JS | |
| >> Calling a function inside a function (it pushes the current data -- local variables, etc -- onto the stack to be retrieved once the control is returned) |
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
| db.animals.insert({"name":"Panda", "numLegs":4, "class":"mammal", "weight": 254, "whatIWouldReallyCallIt":"Captain Fuzzy Face"}); | |
| db.animals.insert({"name":"Dog", "numLegs":4, "class":"mammal", "weight": 60, "whatIWouldReallyCallIt":"Captain Fuzzy Face II"}); | |
| db.animals.insert({"name":"Ostrich", "numLegs":2, "class":"aves", "weight": 230, "whatIWouldReallyCallIt":"Steve"}); | |
| db.animals.insert({"name":"Kangaroo", "numLegs":2, "class":"marsupial", "weight": 200, "whatIWouldReallyCallIt":"Bouncer"}); | |
| db.animals.insert({"name":"Chameleon", "numLegs":4, "class":"reptile", "weight": 5, "whatIWouldReallyCallIt":"Scales"}); |
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
| var myArray = [1, 2, 3, 4, 5]; | |
| for(var i=0; i < myArray.length; i++){ | |
| console.log(myArray[i]); | |
| } |
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
| brew services start mongodb-community | |
| brew services stop mongodb-community |
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
| # <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # Explain why this change is being made | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Example: Github issue #23 |
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
| # removes all node_modules folders recursively | |
| find . -name "node_modules" -exec rm -rf '{}' + | |
| # I found this command on Coderwall at | |
| # https://coderwall.com/p/guqrca/remove-all-node_module-folders-recursively |
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
| Sequelize Model Definition: https://sequelize.org/master/manual/model-basics.html#model-definition | |
| Sequelize DataTypes: https://sequelize.org/master/manual/model-basics.html#data-types | |
| Sequelize ‘WHERE’ Clause: https://sequelize.org/master/manual/model-querying-basics.html#applying-where-clauses | |
| Sequelize Operators (greater than, less than, like, not like, contains, not, and, or, etc…): https://sequelize.org/master/variable/index.html#static-variable-Op | |
| Sequelize Querying Basics: https://sequelize.org/master/manual/model-querying-basics.html |
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
| const keys = { | |
| "s3bucket": "du-bootcamp-s3-example", | |
| "s3key": "AKIARWHMBPRTKOLQSFCO", | |
| "s3secret": "RSUF6BEsYud1ZvY7mgv/fVc0EMi0Gzpygx4RxW4h", | |
| }; |
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
| @channel If you have trouble deploying to Heroku, here are a few things to check on: | |
| Verify that your main server file (whatever its name) and package.json are at the root level of the repository; if this means you need to shuffle things around, verify that the app works locally before deploying. | |
| Check your package.json and verify that there is a ‘scripts’ sub-object with a key/val pair like this: "start": "node server.js" (note that the file name will differ based on the name of the file that contains your Express server.) | |
| Verify that your PORT variable is dynamic. For example: const PORT = process.env.PORT || 3000 . | |
| Verify that you have a ‘get’ route at /. | |
| Verify that your package.json dependencies section includes all required npm packages. | |
| If all else fails and your app throws an error upon deployment, run heroku logs --tail and Google/research the error code(s) you find there. |
NewerOlder