Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| @Post('token') | |
| @UseGuards(BasicAuthGuard) | |
| async token( | |
| @Req() req: Request, | |
| @Res() res: Response, | |
| @Next() next: NextFunction, | |
| ) { | |
| const server = this.oauthService.getOAuthServer(); | |
| const tokenMiddleware = server.token(); |
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_web: |
| import 'dart:math'; | |
| import 'dart:ui'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
| console.API; | |
| if (typeof console._commandLineAPI !== 'undefined') { | |
| console.API = console._commandLineAPI; //chrome | |
| } else if (typeof console._inspectorCommandLineAPI !== 'undefined') { | |
| console.API = console._inspectorCommandLineAPI; //Safari | |
| } else if (typeof console.clear !== 'undefined') { | |
| console.API = console; | |
| } | |
| console.save = function(data, filename) { |
| FROM alpine:latest | |
| RUN apk add --update php python py-pip mysql-client \ | |
| && pip install awscli \ | |
| && rm -rf /var/cache/apk/* | |
| RUN touch crontab.tmp \ | |
| && echo '* */6 * * * echo "working..."' > crontab.tmp \ | |
| && echo '0 2 * * * echo "working again...' >> crontab.tmp \ | |
| && crontab crontab.tmp \ |
| image: golang:1.12.6 | |
| variables: | |
| REPO: gitlab.com | |
| GROUP: flying_kiwi | |
| PROJECT: go-ci-demo | |
| stages: | |
| - test |
| run apk --no-cache add --virtual native-deps \ | |
| g++ gcc libgcc libstdc++ linux-headers make python && \ | |
| npm install --quiet node-gyp -g &&\ | |
| npm install --quiet && \ | |
| apk del native-deps |
| const workbook = XLSX.readFile(filename); | |
| const sheet_name_list = workbook.SheetNames; | |
| let jsonPagesArray = []; | |
| sheet_name_list.forEach(function(sheet) { | |
| const jsonPage = { | |
| name: sheet, | |
| content: XLSX.utils.sheet_to_json(workbook.Sheets[sheet], {defval: ""}) | |
| }; | |
| jsonPagesArray.push(jsonPage); | |
| }); |