What do you want to save?
Add Code snippet
New code examples
-
VBA 2022-02-03 02:21:53
vba initialize or detect NaN infinity infinity special values
'VBA function to create and detect IEEE 754 Floating-Point Arithmetic 'special values in the Double data type. 'To create a special value: MsgBox SpecialVal("PosQNaN") 'displays: 1.#QNAN MsgBox SpecialVal("NegMin") 'displays: -1.... Add solution -
Javascript 2022-02-02 23:01:05
multiple async api calls javascript
// store urls to fetch in an array const urls = [ 'https://dog.ceo/api/breeds/list', 'https://dog.ceo/api/breeds/image/random' ]; // use map() to perform a fetch and handle the response for each url Promise.all(urls.map(url => fetch(url) .th... Add solution -
VBA 2022-02-02 18:50:10
vba text max line length
' Max line length inside a text Public Function MaxLineSize(ByVal pText As String) Dim lines() As String Dim line As Variant lines = Split(pText, vbCrLf) If UBound(lines) - LBound(lines) + 1 = 0 Then Exit Function For Each line In lines ... 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 -
Shell/Bash 2022-01-31 01:12:47
count number of lines files .cpp .h
# Show count sum find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec cat {} + | wc -l # Show count sum and stats for each file find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec wc -l {} + Add solution -
Other 2022-01-30 20:05:58
solidity code for electricity trading transaction programming
pragma solidity ^0.5.10;import "@openzeppelin/contracts/token/ERC20/ERC20.sol";import "@hq20/contracts/contracts/access/Whitelist.sol";/** * @title Energy Market * @notice Implements a simple energy market, using ERC20 and * Whitelist... Add solution
Best helpers
Jean Luis
+5
Terry3497
+5
Aown Ali
+5
Ishan Yadav
+5
SunnyHills
+5
Rocky DeHart
+5
Numeri
+5
Martinako
+5
Eve noonan
+5
Cynthia
+5