Not nullable overlap
(x.StartDate <= y.EndDate && x.EndDate >= y.StartDate)
Nullable overlap
(x.StartDate ?? y.EndDate <= y.EndDate ?? x.StartDate) && (x.EndDate ?? y.StartDate >= y.StartDate ?? x.EndDate)
function toHSL(hex) { | |
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
var r = parseInt(result[1], 16); | |
var g = parseInt(result[2], 16); | |
var b = parseInt(result[3], 16); | |
(r /= 255), (g /= 255), (b /= 255); | |
var max = Math.max(r, g, b), | |
min = Math.min(r, g, b); |
Not nullable overlap
(x.StartDate <= y.EndDate && x.EndDate >= y.StartDate)
Nullable overlap
(x.StartDate ?? y.EndDate <= y.EndDate ?? x.StartDate) && (x.EndDate ?? y.StartDate >= y.StartDate ?? x.EndDate)
{"lastUpload":"2020-08-12T09:24:11.113Z","extensionVersion":"v3.4.3"} |
$('[id]').each(function() { | |
var ids = $("[id='" + this.id + "']") | |
if (ids.length > 1 && ids[0] == this) console.warn('Multiple IDs# ' + this.id) | |
}); |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Electron: Main", | |
"protocol": "inspector", | |
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", | |
"runtimeArgs": [ |
namespace UI.Helpers | |
{ | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Text; | |
using Telerik.Reporting.Processing; |
namespace UnitTest.Helpers | |
{ | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Linq; | |
public static class UnitTestHelper | |
{ |
namespace CrystalPrinter.Utilities | |
{ | |
using iTextSharp.text; | |
using iTextSharp.text.pdf; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
// http://www.codeproject.com/Articles/28283/Simple-NET-PDF-Merger | |
public static class PDFMerger |
DECLARE @Temp TABLE | |
( | |
RowID INT IDENTITY (1,1), | |
InstituteID INT, | |
WorkerID INT | |
) | |
DECLARE @iMax INT, | |
@i INT | |
INSERT INTO @Temp (InstituteID, WorkerID) |
ko.bindingHandlers['readonly'] = { | |
'update': function (element, valueAccessor) { | |
var value = ko.utils.unwrapObservable(valueAccessor()); | |
if (!value && element.readOnly) | |
element.readOnly = false; | |
else if (value && !element.readOnly) | |
element.readOnly = true; | |
} | |
}; |