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 merge = require('webpack-merge'); | |
| const common = require('./webpack.common.js'); | |
| const webpack = require('webpack'); | |
| module.exports = merge(common, { | |
| devtool: 'inline-source-map', | |
| mode: 'development', | |
| optimization: { | |
| splitChunks: { | |
| cacheGroups: { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-COMPATIBLE" | |
| content="ie=edge"> | |
| <title><%= htmlWebpackPlugin.options.title %></title> |
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
| curl --location --user guest:guest --request GET "https://jigsaw.w3.org/HTTP/Basic/" | |
| curl --proxy-anyauth --proxy-user daniel:secret "http://example.com/" --proxy "http://proxy.example.com:80/" |
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 xlsx = require('xlsx'); | |
| const filePath = process.argv.slice(2)[0]; | |
| const workbook = xlsx.readFile(filePath); | |
| const worksheet = workbook.Sheets[workbook.SheetNames[0]]; | |
| let posts = []; | |
| let post = {}; | |
| for (let cell in worksheet) { |
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
| git diff HEAD -- src/components/TextInput.vue |
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
| class UserError extends Error { | |
| constructor(message: string) { | |
| super(`A user error occured: ${message}`); | |
| } | |
| } | |
| class OrderError extends Error { | |
| } | |
| class PaymentError extends Error { |
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": "postgres", | |
| "host": "hostname", | |
| "port": 22000, | |
| "username": "username", | |
| "password": "password", | |
| "database": "db", | |
| "synchronize": false, | |
| "logging": false, | |
| "ssl": { |
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
| import "reflect-metadata"; | |
| import {createConnection, ConnectionOptions} from "typeorm"; | |
| import http from "http"; | |
| import express from 'express'; | |
| import config from "../ormconfig.json"; | |
| createConnection(config as ConnectionOptions).then(async connection => { | |
| const app = express(); | |
| app.use(express.json()); | |
| const server = new http.Server(app); |