Skip to content

Instantly share code, notes, and snippets.

@lankymart
lankymart / README.md
Last active September 24, 2019 11:00
FancyBox2 Confirm Dialog Box

FancyBox2 Confirm Dialog Box

Single callback approach to implementing a Confirmation Dialog Box using FancyBox2

Usage

fancyconfirm("Do you wish to continue?"
  , { modal: true }
 , function(resp) { 
@lankymart
lankymart / puny.asp
Created August 26, 2016 12:36 — forked from anonymous/puny.asp
puny.asp
<%
' *********************************************************************
' ** DISCLAIMER AND LICENSE **
' ** The author of this code makes no guarantees and is not **
' ** responsible for any damage resulting from its use. **
' ** You may modify the code for your own use in any way you like, **
' ** but it may only be distributed in its original form. **
' ** The VBScript punycode conversion functions in this code is **
' ** derived from the sample C code in RFC 3492. **
' ** Author: Jesper G. Høy - JH Software ApS - www.jhsoft.com **
@lankymart
lankymart / IIS Website Recommendations.md
Created February 22, 2017 17:29
Recommendations for Setting up Websites in IIS

Recommendations for Setting up Websites in IIS

Things to consider while setting up IIS websites

  • Anonymous Access Account
  • Application Pool
  • NTFS Permissions

Setting up an Anonymous Account

@lankymart
lankymart / restsharp.deserializer.cs
Created November 9, 2017 15:17
RESTSharp Deserialize JSON properties with dots in the name
// Create a deserialiser based off JsonDeserializer
public class JsonComplexDeserializer : IDeserializer
{
public string RootElement { get; set; }
public string Namespace { get; set; }
public string DateFormat { get; set; }
public CultureInfo Culture { get; set; }
@lankymart
lankymart / Log4NetLogger.cs
Last active September 24, 2019 11:10
Log4Net Implementation for the MailKit IProtocolLogger
using log4net;
using log4net.Config;
using MailKit;
using System;
using System.Text;
public class Log4NetLogger : IProtocolLogger
{
static readonly string clientPrefix = "C:";
static readonly string serverPrefix = "S:";
@lankymart
lankymart / Readme.md
Last active March 29, 2021 19:15
Sending Email encoding using UTF-8 using Classic ASP