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
var axios = require("axios"); | |
const promises = []; | |
for(i=0;i< 5;i++) { | |
promises.push(callApi()) | |
} | |
let success = 0, error = 0; | |
Promise.all(promises).finally(() => { |
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 Sequelize = require('sequelize'); | |
const sequelize = new Sequelize('database', 'root', 'password', { | |
host: 'localhost', | |
dialect: 'mysql' | |
}); | |
const Account = sequelize.define('account', { | |
balance: { | |
type: Sequelize.INTEGER, | |
allowNull: false, |
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
myItems = $('[aria-label="Select connections to invite"]').children | |
for(const index in myItems) { | |
const item = myItems[index] | |
item.scrollIntoViewIfNeeded(); | |
item.getElementsByTagName('input')[0].click(); |
OlderNewer