What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-10 07:12:13
javascript steps
// 2-now want to craet another table to but the data in it //but before we creat it we need a constructor function function data(from, to, capacity, reserve,lefted) { this.from=from; this.to=to; this.capacity=capacity ; this.reserve=reserve ; this.lef... Add solution -
Javascript 2021-11-10 07:07:11
how to use axios get
const axios = require('axios'); // Make a request for a user with a given ID axios.get('/user?ID=12345') .then(function (response) { // handle success console.log(response); }) .catch(function (error) { // handle error console.log(e... Add solution -
PHP 2021-11-10 01:04:18
user1263019 how to upload a file using php curl
<?php // Helper function courtesy of https://github.com/guzzle/guzzle/blob/3a0787217e6c0246b457e637ddd33332efea1d2a/src/Guzzle/Http/Message/PostFile.php#L90 function getCurlValue($filename, $contentType, $postname) { // PHP 5.5 introduced a CurlF... Add solution -
Other 2021-11-09 19:39:29
huffman coding algorithm code
// Huffman Coding in C++ #include <iostream> using namespace std; #define MAX_TREE_HT 50 struct MinHNode { unsigned freq; char item; struct MinHNode *left, *right; }; struct MinH { unsigned size; unsigned capacity; struct MinHNode **... Add solution -
Other 2021-11-09 14:48:22
what is risk analysis
Risk analysis is the process of identifying risk in the application and prioritizing them to test. Following are some of the risks: 1.New Hardware. 2. New Technology. 3. New Automation Tool. 4. Sequence of code delivery. 5. Availability of application te... Add solution -
PHP 2021-11-09 03:34:13
404 page in laravel
//step 1 ) create the errors/404.blade.php in view. // step 2 ) go to Handler.php and replace the render function to belwo function. public function render($request, Throwable $exception) { if ($exception instanceof AccessDeniedHttpExceptio... Add solution -
Python 2021-11-07 12:35:18
how to get calling function in python
# Python code to demonstrate calling the #This example will help you to learn about funtion and function call #added by: vikalp chaubey # function from another function def Square(X): # computes the Square of the given number # and return to the c... Add solution -
VBA 2021-11-06 13:20:24
excelvba return a result from a function
'In VBA, you assign the return value to the name of the function. 'This is different from many languages that use the 'return' keyword: Function Yesterday() As Date Yesterday = Date() - 1 End Function 'VBA functions can be called from other VBA code: ... Add solution -
Javascript 2021-11-04 16:04:10
new keyword in js
ObjMaker = function() {this.a = 'first';}; // ObjMaker is just a function, there's nothing special about it that makes // it a constructor. ObjMaker.prototype.b = 'second'; // like all functions, ObjMaker has an accessible prototype property that // we... Add solution