This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| #!/bin/bash | |
| echo $1 | |
| type='' | |
| name=$2 | |
| if [ $1 = "a" ]; then | |
| type="atoms" | |
| fi |
| version: '3' | |
| services: | |
| gitlab-runner: | |
| image: gitlab/gitlab-runner:alpine | |
| container_name: gitlab_runner | |
| restart: always | |
| depends_on: | |
| - register-runner | |
| volumes: |
| test('should rejects any error', async () => { | |
| await expect(callPromise(arg1, arg2)).rejects.toEqual( | |
| expect.any(Error) | |
| ); | |
| }); |
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| const BootstrapTable = React.createClass({ | |
| componentDidMount() { | |
| $(ReactDOM.findDOMNode(this)).bootstrapTable(this.props) | |
| }, | |
| componentWillReceiveProps(nextProps) { | |
| $(ReactDOM.findDOMNode(this)).bootstrapTable('refreshOptions', nextProps) | |
| }, |
| .FullVideoBg { | |
| position: fixed; | |
| top: 50%; | |
| left: 50%; | |
| min-width: 100%; | |
| min-height: 100%; | |
| width: auto; | |
| height: auto; | |
| z-index: -100; | |
| -ms-transform: translateX(-50%) translateY(-50%); |
| // https://www.npmjs.com/package/request | |
| var request = require('request') | |
| var opts = { url: 'http://myjsonstorage.com/db.json', json: true } | |
| request(opts, function (error, response, body) { | |
| if (error) throw error | |
| jsonServer.router(body) | |
| //... | |
| jsonServer.listen(3000) | |
| }) |
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; |