What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-13 08:40:02
your company assigns each customer a membership id
//your company assigns each customer a membership id function createCheckDigit(membershipId) { let arr = membershipId.split(''); while (arr.length > 1) { arr = arr.reduce((count, item) => { return count + parseInt(item); },0); ... Add solution -
Other 2022-02-04 21:21:10
getting last successful job run hangfire status
var jobName = performContext.BackgroundJob.Job.ToString(); var currentJobId = int.Parse(performContext.BackgroundJob.Id); JobData jobFoundInfo = null; using (var connection = JobStorage.Current.GetConnection()) { var decrementId = currentJobId; w... Add solution -
Javascript 2022-02-02 08:55:31
express get all endpoints
const routes = {} function routerRecursion(middleware, pointer, currentName) { if (middleware.route) { // routes registered directly on the app if (!Array.isArray(pointer['routes'])) { pointer['routes'] = [] } const routeObj = { ... Add solution -
Javascript 2022-01-31 03:57:19
Manually Parsing Plain text in Node.js
/* This code comes from Vincent Lab And it has a video version linked here: https://www.youtube.com/watch?v=fy2RF9JR1BI */ // Import dependencies const fs = require("fs"); // Read the text file and split it on new lines const lines = f... Add solution