Skip to content

Instantly share code, notes, and snippets.

@kemiller2002
kemiller2002 / ShowOnlyOnceUsingCookie.html
Created August 10, 2016 16:46
shows how to use a cookie to display only once. There is an extra else statement to remove it for testing.
<html>
<body>
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<div class="overlay-bg" style="display:none">
<div class="overlay-inner">
<h2>To explore more simply...</h2>
<html>
<body>
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<input type="button" class="btnSaveParameters" id="btn_SaveCriteria"
onclick="return btn_SaveCriteria_onclick()"
value="Save Subscription" />
/// <summary>
/// This has lazy evaluation, so you won't find out if the argument is the cause of an exception
/// until you start the enumeration.
/// </summary>
/// <param name="word"></param>
/// <returns></returns>
public static IEnumerable<char> MakeUpperCaseAndReturnParts (string word)
{
if (String.IsNullOrWhiteSpace(word))
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TestOutVariable
{
using System;
using System.Collections.Generic;
using System.Linq;