What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-28 06:44:02
node cluster
const cluster = require('cluster'); const http = require('http'); const numCPUs = require('os').cpus().length; if (cluster.isMaster) { console.log(`Master ${process.pid} is running`); // Fork workers. for (let i = 0; i < numCPUs; i++) { clu... Add solution -
Javascript 2021-08-28 05:55:01
formidable form node js
// make this a middleware function, // then put it on the route like you used jwt, // then get the value with req.users. const { IncomingForm } = require('formidable') const { resolve } = require('path') const { existsSync, writeFileSync } = require('fs... Add solution -
Other 2021-08-28 05:04:01
powerapps send email from other account
Office365Outlook.SendEmailV2(toEmail, subject, body, {From: fromEmail}); This parameter allows you to send Email on behalf of the others within your Office 365 tenant. Doing it in this way requires Mailbox permission from the other User Account. To give... Add solution -
Javascript 2021-08-28 04:54:01
event emmiter in node js stackoverflow
const events = require('events'); const eventEmitter = new events.EventEmitter(); eventEmitter.on('scream', function() { console.log("Screaming"); }); eventEmitter.on('scream', function(name) { console.log(name+" is screaming&qu... Add solution -
Shell/Bash 2021-08-28 04:32:02
how to delete large folders in windows super fast
The two commands that users require are Del, for deleting files, and Rmdir, for removing directories. 1. Tap on the Windows-key, type cmd.exe and select the result to load the command prompt. 2. Navigate to the folder that you want to delete (with all i... Add solution -
Python 2021-08-28 02:15:02
gaussian elimination python without library
# Importing NumPy Library import numpy as np import sys # Reading number of unknowns n = int(input('Enter number of unknowns: ')) # Making numpy array of n x n+1 size and initializing # to zero for storing augmented matrix a = np.zeros((n,n+1)) # Mak... Add solution -
Shell/Bash 2021-08-28 01:55:02
html webpack plugin
//installation npm install --save-dev html-webpack-plugin //configuration var HtmlWebpackPlugin = require('html-webpack-plugin'); var path = require('path'); module.exports = { entry: 'index.js', output: { path: path.resolve(__dirname, './dist')... Add solution -
PHP 2021-08-28 01:53:02
txt local sms integration in php example
<?php require('textlocal.class.php'); $otp = rand(1000,9999); $textlocal = new Textlocal(false, false, 'XXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); $phone = '910123456789'; // ISD code prepended $numbers = array($phone); $sender = 'TXTLCL'; $... Add solution -
Python 2021-08-28 00:14:01
python date range widget
from django import forms from bootstrap_daterangepicker import widgets, fields class DemoForm(forms.Form): # Date Picker Fields date_single_normal = fields.DateField() date_single_with_format = fields.DateField( input_formats=['%d/%m... Add solution
Best helpers
Michaelyus
+5
EBA2018
+5
Eric Lewis
+5
J. Tatum
+5
Erwaman
+5
Jp_
+5
Fauve
+5
Katy Forde
+5
Jcvamp
+5
Chris
+5