Skip to content

Instantly share code, notes, and snippets.

View mqamarmunir's full-sized avatar

Muhammad Qamar Munir mqamarmunir

  • Calrom
  • Lahore, Pakistan
View GitHub Profile
// -----------------------------------------------------------------------
// <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();
@mqamarmunir
mqamarmunir / tooltip.css
Created June 8, 2017 11:20 — forked from csasbach/tooltip.css
Create tooltips on mouseover or on click (for supporting touch interfaces).
abbr
{
border-bottom: 1px dotted #666;
cursor: help;
}
.tooltip
{
position:absolute;
background-color:#eeeefe;
@mqamarmunir
mqamarmunir / measure-distance-between-the-strings-using-levenstein-distance-algorithm.markdown
Created January 26, 2017 14:26
Measure distance between the strings using levenstein distance algorithm