What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-28 10:06:01
setting up C# project with VSCode
# Setting up C# project with VSCode: # 1. Open File Explorer and create a folder on your disk, then select the # file path and to open the Command Prompt at the current path, type: cmd # (For the purpose of this guide, the folder is called 'MyFol... Add solution -
Shell/Bash 2021-08-28 02:03:01
Cannot destructure property 'client_secret' of 'credentials.installed'
var clientSecret = credentials.installed.client_secret; In this line credentials is pointing to client_secret.json so the first key has to be "installed". In my case the key was "web" and that was causing the error. I just renamed the... Add solution -
Shell/Bash 2021-08-27 15:44:01
Could not start Firestore Emulator, port taken mac
# kill process running in port 9000 lsof -ti tcp:9000 | xargs kill -9 # create a bash script - kill-ports.bash # copy and paste the below script #Stop following command execution if command before failed set -e kill_functions_port() { # functions em... Add solution -
SQL 2021-08-27 12:42:01
create database dynamically sql server using sequalize
const config = require('config.json'); const mysql = require('mysql2/promise'); const { Sequelize } = require('sequelize'); module.exports = db = {}; initialize(); async function initialize() { // create db if it doesn't already exist const { h... Add solution