What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-03-27 22:35:13
Dijkstra’s algorithm php
$INT_MAX = 0x7FFFFFFF; function MinimumDistance($distance, $shortestPathTreeSet, $verticesCount) { global $INT_MAX; $min = $INT_MAX; $minIndex = 0; for ($v = 0; $v < $verticesCount; ++$v) { if ($shortestPathTreeSet[$v] == false &&... Add solution -
Javascript 2022-03-27 22:25:20
javascript download string as file
function download(filename, text) { var element = document.createElement('a'); element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)); element.setAttribute('download', filename); element.style.display = 'none'; ... Add solution -
Javascript 2022-03-27 21:15:02
javascript regex french phone number
function regexPhoneNumber(str) { const regexPhoneNumber = /^((\+)33|0)[1-9](\d{2}){4}$/; if (str.match(regexPhoneNumber)) { return true; } else { return false; } } let phoneNumber = "+33777777777"; console.log(regexPhoneNumber(phone... Add solution -
VBA 2022-03-27 20:55:02
excel vba check if all substrings in list are in string
'VBA function to check if ALL of a list of substrings is contained 'within a string: Function AllIn(s$, ParamArray checks()) As Boolean Dim e For Each e In checks If 0 = InStrB(s, e) Then Exit Function Next AllIn = True End Functi... Add solution -
Javascript 2022-03-27 20:15:07
bootstrap validator password and confirm password
//Declarative Usage <form id="identicalForm" class="form-horizontal" data-bv-feedbackicons-valid="glyphicon glyphicon-ok" data-bv-feedbackicons-invalid="glyphicon glyphicon-remove" data-bv-feedbackico... Add solution -
Html 2022-03-27 19:55:09
show image inside table with innerhtml
var array = cvpls(); var table = ``; for (var i = 0; i < array.length; i++) { table += `<tr>`; for (var j = 0; j < array[i].length; j++) { if (i === 1 && j === 2) { table += `<td><img src='http://imgh.us/statik.g... Add solution -
Other 2022-03-27 19:45:11
ReferenceError: require is not defined site:stackoverflow.com
const cors = require('cors'); const express = require('express'); const bodyParser = require('body-parser'); var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, { 'Content-Type': 'text/plain' }); ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5