first step is to list all databases. Get into the mongo terminal with mongo and run the follwing command to show all the DBs
show dbs
| { | |
| "Print to console": { | |
| "prefix": "l", | |
| "body": [ | |
| "console.log('$1');", | |
| "$2" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "Simple function":{ |
| /** | |
| * Handlebars KeystoneJS Debug helper | |
| * @param optionalValue | |
| */ | |
| _helpers.debug = function(optionalValue) { | |
| console.log("Current Context"); | |
| console.log("===================="); | |
| console.log(this); | |
| if (optionalValue) { |
| var Vehicle = { | |
| describe: function () { | |
| return `This ${this.type} is the ${this.make} ${this.model}.`; | |
| } | |
| } | |
| var Car = Object.create(Vehicle, { | |
| type: {value: 'Car', writable: true} | |
| }); |
| window.addEventListener("deviceorientation", function (e) { | |
| var all = document.querySelectorAll('*'); | |
| for(var i = 0;i < all.length;i++) { | |
| all[i].style.transform = 'rotateX('+e.alpha+'deg) rotateY('+e.gamma+'deg) rotateX('+e.beta+'deg)'; | |
| } | |
| }, true); |
| <h1>This is the primary heading and there should only be one of these per page</h1> | |
| <p>A small paragraph to <em>emphasis</em> and show <strong>important</strong> bits.</p> | |
| <ul> | |
| <li>This is a list item</li> | |
| <li>So is this - there could be more</li> | |
| <li>Make sure to style list items to: | |
| <ul> | |
| <li>Not forgetting child list items</li> | |
| <li>Not forgetting child list items</li> | |
| <li>Not forgetting child list items</li> |
| // Create a row | |
| .class { | |
| @include grid-row; | |
| } | |
| // create a column with options | |
| .class { | |
| @include grid-column( | |
| $columns: 10, | |
| $gutters: 1 |
| import forEach from 'lodash/forEach'; | |
| /** | |
| * Sample Web Service | |
| * This is a sample service class that uses fetch and promises. | |
| * | |
| * I am using the http://httpbin.org endpoint to ensure this example is working properly. | |
| * | |
| * @class sampleWebService | |
| */ | |
| class sampleWebService { |
| document.body.addEventListener('click', (event) => { | |
| if (event.target.className === 'class-name') { | |
| // do stuff. | |
| } | |
| }); |
| { | |
| "Print to console": { | |
| "prefix": "1", | |
| "body": [ | |
| "console.log(${TM_LINE_NUMBER}, '$1');", | |
| "$2" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "Simple function": { |