What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-10 03:18:02
rooms in socket io
io.on('connection', socket => { socket.join('some room'); }); //And then simply use to or in (they are the same) when broadcasting or emitting: io.to('some room').emit('some event'); //You can emit to several rooms at the same time: io.to('room1').... Add solution -
Javascript 2021-09-09 22:20:03
discord.js mute script
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.member.hasPermission('MUTE_MEMBERS')) return message.reply('You cannot use this command'); if (!message.guild.me.hasPermission('MANAGE_ROLES')) ret... Add solution -
Shell/Bash 2021-09-09 16:11:02
pgadmin ubuntu
sudo apt-get update sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev mkdir pgAdmin4 cd pgAdmin4 virtualenv pgAdmin4 cd pgAdmin4 source bin/activate wget https://ftp.postgresql.org/pub/pgadmi... Add solution -
Javascript 2021-09-09 10:36:02
export mongo to csv node
const json2csv = require('json2csv').parse; //For unique file name const dateTime = new Date().toISOString().slice(-24).replace(/\D/g, '').slice(0, 14); const filePath = path.join(__dirname, "../../../", "public", "exports&quo... Add solution -
SQL 2021-09-08 18:55:02
sql insert bulk list of dictionaries
for item_code, companywise_item_data in items_default_data.items(): for company, item_default_data in companywise_item_data.items(): to_insert_data.append(( frappe.generate_hash("", 10), item_code, 'Item', 'item_defaul... Add solution
Best helpers
Ranking is empty