Measure distance between the strings using levenstein distance algorithm
A Pen by Muhammad Qamar on CodePen.
// ----------------------------------------------------------------------- | |
// <copyright file="PriceTicketedPnrCommandHandler.cs" company="Calrom Limited"> | |
// Copyright (c) Calrom Limited. All rights reserved. | |
// </copyright> | |
// ----------------------------------------------------------------------- | |
namespace Calrom.Bookings.Api.Application.Commands | |
{ | |
using System.Collections.Generic; | |
using System.Text; |
static void Main(string[] args) | |
{ | |
try | |
{ | |
// output "hello world" as method returns early | |
Console.WriteLine(GetStringData()); | |
} | |
catch | |
{ | |
// Exception is NOT caught here |
<script> | |
// A simple function to copy a string to clipboard. See https://github.com/lgarron/clipboard.js for a full solution. | |
var copyToClipboard = (function() { | |
var _dataString = null; | |
document.addEventListener("copy", function(e){ | |
if (_dataString !== null) { | |
try { | |
e.clipboardData.setData("text/plain", _dataString); | |
e.preventDefault(); |
abbr | |
{ | |
border-bottom: 1px dotted #666; | |
cursor: help; | |
} | |
.tooltip | |
{ | |
position:absolute; | |
background-color:#eeeefe; |
A Pen by Muhammad Qamar on CodePen.