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
| /** | |
| * Class helper | |
| * @param className | |
| * @param method | |
| * @param element | |
| * @returns {*} | |
| * @example curry(classHelper)('myClass')('contains') | |
| * @example curry(classHelper)('myClass')('add') | |
| * @example curry(classHelper)('myClass')('remove') | |
| */ |
| FROM node:boron | |
| # Create app directory | |
| WORKDIR /usr/src/app | |
| # Install app dependencies | |
| COPY package.json . | |
| # For npm@5 or later, copy package-lock.json as well | |
| # COPY package.json package-lock.json ./ |
| import isString from 'lodash/isString'; | |
| export class Browser { | |
| /** | |
| * Creates an instance of Browser. | |
| * @memberof Browser | |
| */ | |
| constructor() { | |
| this.setClassOnBody(this.detectBrowser()); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title></title> | |
| <meta http-equiv="Content-Security-Policy" content="default-src https://ajax.googleapis.com; child-src 'none'; object-src 'none';"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <h1>test</h1> | |
| <script> |
| { | |
| "Print to console": { | |
| "prefix": "1", | |
| "body": [ | |
| "console.log(${TM_LINE_NUMBER}, '$1');", | |
| "$2" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "Simple function": { |
| document.body.addEventListener('click', (event) => { | |
| if (event.target.className === 'class-name') { | |
| // do stuff. | |
| } | |
| }); |
| 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 { |
| // Create a row | |
| .class { | |
| @include grid-row; | |
| } | |
| // create a column with options | |
| .class { | |
| @include grid-column( | |
| $columns: 10, | |
| $gutters: 1 |
| <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> |