View elmah-error-filter.xml
<errorFilter>
<test>
<and>
<regex binding="FilterSourceType.Name" pattern="mail" />
<or>
<regex binding="Exception.Message" pattern="(?ix: \b requested \b.+?\b resource \b.+?\b accessed \b.+?\b SSL \b )" />
<equal binding="HttpStatusCode" value="404" type="Int32" />
</or>
</and>
</test>
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View LICENSE
Copyright (c) 2010 Maurice Machado <maurice@bitbending.com>
Copyright (c) 2012 Stephane Alnet <stephane@shimaore.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
View IOMonad.cs
using System;
using System.Runtime.InteropServices;
// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart
sealed partial class IO<T>
{
readonly Func<T> _func;
View htmltbl2tt.linq
<Query Kind="Program">
<Reference>&lt;RuntimeDirectory&gt;\System.Net.Http.dll</Reference>
<NuGetReference>Fizzler.Systems.HtmlAgilityPack</NuGetReference>
<NuGetReference Prerelease="true">WebLinq</NuGetReference>
<Namespace>Fizzler</Namespace>
<Namespace>Fizzler.Systems.HtmlAgilityPack</Namespace>
<Namespace>HtmlAgilityPack</Namespace>
<Namespace>System.Net.Http</Namespace>
<Namespace>System.Threading.Tasks</Namespace>
<Namespace>WebLinq.Html</Namespace>
View Disposable.cs
#region Copyright (c) 2016 Atif Aziz. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
View WebPagesRouteHandler.cs
// Derived from https://www.nuget.org/packages/WebPageRouteHandler
using System.Web;
using System.Web.Routing;
using System.Web.WebPages;
public class WebPagesRouteHandler : IRouteHandler
{
readonly string _virtualPath;
Route _routeVirtualPath;
View UnixTime.cs
#region Copyright (c) 2016 Atif Aziz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
View RegexTokens.cs
#region Copyright (c) 2016 Atif Aziz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
View Scheduler.cs
#region Copyright (c) 2016 Atif Aziz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,