A Pen by Muhammad Qamar on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------- | |
// <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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
try | |
{ | |
// output "hello world" as method returns early | |
Console.WriteLine(GetStringData()); | |
} | |
catch | |
{ | |
// Exception is NOT caught here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abbr | |
{ | |
border-bottom: 1px dotted #666; | |
cursor: help; | |
} | |
.tooltip | |
{ | |
position:absolute; | |
background-color:#eeeefe; |