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
// Assuming you have a json file named pizzas.json in the same directory as this script | |
// and the JSON file is a list of objects { "toppings" : ["topping1", "topping2"] } | |
// Determine the 20 most popular pizza topping combinations. | |
// Output the Combinations, the number of times the combination has been ordered, | |
// and the number of times the topping has been used | |
const fs = require('fs'); | |
const pizzaFile = JSON.parse(fs.readFileSync('./pizzas.json', 'utf8')) | |
let search = ''; | |
let uniqToppings = [] |
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
{ | |
"name": "webdriverio-repl", | |
"version": "0.0.1", | |
"description": "webdriver.io v5 repl project", | |
"dependencies": { | |
"@wdio/cli": "5.7.15", | |
"@wdio/selenium-standalone-service": "5.7.8", | |
"@wdio/sync": "5.8.1" | |
} | |
} |
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
#!/bin/bash | |
echo -e "Starting Verdaccio local node repository..." | |
docker run -d --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio | |
echo -e "Verdaccio started at: http://localhost:4873" | |
echo -e "Make sure you add a local user" | |
echo -e "npm adduser --registry http://localhost:4873" |
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
{ "dependencies" : | |
{ | |
"myModule" : "file:../relative/path/to/myModule" | |
} | |
} |
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
#!/bin/bash | |
echo -e "Removing node_modules directory" | |
rm -rf node_modules | |
echo -e "Removing package-lock.json" | |
rm package-lock.json | |
echo -e "Reinstalling modules" | |
npm install |