What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-22 15:10:23
Mex file example
/* MyMEXFunction * Adds second input to each * element of first input * a = MyMEXFunction(a,b); */ #include "mex.hpp" #include "mexAdapter.hpp" using namespace matlab::data; using matlab::mex::ArgumentList; class MexFunction : ... Add solution -
VBA 2022-01-22 14:55:20
excel vba date to unix timestamp and vice versa
'VBA functions to convert between Excel and Unix date-times. 'These work on Windows and optionally the Mac: Function UnixDateTime#(ExcelDateTime As Date, Optional Mac As Boolean) Dim OSOffset: OSOffset = IIf(Mac, 24107, 25569) UnixDateTime = (Ex... Add solution -
Javascript 2021-11-22 16:22:27
javascript onclick select coordinates
var x; var y; if (e.pageX || e.pageY) { x = e.pageX; y = e.pageY; } else { x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } x -= gC... Add solution -
Javascript 2021-11-22 16:21:20
javascript onclick select coordinates
var x; var y; if (e.pageX || e.pageY) { x = e.pageX; y = e.pageY; } else { x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } x -= gC... Add solution -
Javascript 2021-11-22 16:17:49
javascript onclick select coordinates
var x; var y; if (e.pageX || e.pageY) { x = e.pageX; y = e.pageY; } else { x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } x -= gC... Add solution -
Javascript 2021-11-22 16:14:51
javascript onclick select coordinates
var x; var y; if (e.pageX || e.pageY) { x = e.pageX; y = e.pageY; } else { x = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = e.clientY + document.body.scrollTop + document.documentElement.scrollTop; } x -= gC... Add solution
Best helpers
Ranking is empty