// Disable Context Menu document.oncontextmenu = function () { return false };
// Disable dragging of HTML elements document.ondragstart = function () { return false };
<?php | |
/* | |
Plugin Name: Forms: 3rd-Party Migrate | |
Plugin URI: https://github.com/zaus/forms-3rdparty-migrate | |
Description: Export/Import settings for Forms-3rdparty, or migrate to/from CF7-3rdparty | |
Author: zaus | |
Version: 0.3.2 | |
Author URI: http://drzaus.com | |
*/ |
// Disable Context Menu document.oncontextmenu = function () { return false };
// Disable dragging of HTML elements document.ondragstart = function () { return false };
void Main() | |
{ | |
test(100, 9); | |
test(1000, 9); | |
test(100, 25); | |
test(10000, 100); | |
} | |
// Define other methods and classes here | |
void test(int populationSize, int segmentSize) { |
Transition idea for any website access page :)
Also on Dribbble http://drbl.in/nVPV
A Pen by Fabrizio Bianchi on CodePen.
After using the suggested Partition
solution on a set of data that had calculations applied to each element before being enumerated (see scenarios below), I noticed the application took much longer. Investigated via tests.cs
and discovered that each item will be evaluated twice. See differences in sideeffect
in results.
var items = database.Fetch(filter).ToList();
var calculatedStuff = items.Select(item => new CalculatedItem(item));
// other stuff
var file = new SomeFileHelperThing("filename");
using System.IO; | |
// modified from RestSharp unit tests https://github.com/restsharp/RestSharp/blob/master/RestSharp.IntegrationTests/Helpers/SimpleServer.cs | |
namespace UnitTesting | |
{ | |
using System; | |
using System.Net; | |
using System.Security; | |
using System.Threading; |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
/// via original discussion http://haacked.com/archive/2009/01/14/named-formats-redux.aspx | |
namespace Haacked.StringLib { | |
/// <summary> | |
/// Extension string methods for named token replacement |
using System; | |
using System.Collections.Generic; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using AtifAzis.Extensions; | |
/// for http://haacked.com/archive/2009/01/14/named-formats-redux.aspx and https://gist.github.com/3763138 | |
namespace Tests.Haacked.StringLib { |
public class LinqSubsetTests { | |
/// example class | |
public class Foo { | |
public long ID { get; set; } | |
public int Filterable { get; set; } | |
public string Name { get; set; } | |
public IEnumerable<Bar> Children { get; set; } |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
namespace Playground.Tests { | |
public class OrderSubsetTests { | |
#region -------------- classes ---------------- |