This file contains 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
using System; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/4968274 | |
/// Articles on CodeProject | |
/// <summary> | |
/// |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Helpers | |
{ | |
public static class CommonExtensions | |
{ | |
public static IEnumerable<IEnumerable<T>> Batch<T> (this IEnumerable<T> collection, int batchSize) | |
{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/4977955 | |
/// Articles on CodeProject | |
/// <summary> |
This file contains 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
using System; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/4968274 | |
/// Articles on CodeProject | |
public class SimpleObjectPool<T> where T : class | |
{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Helpers | |
{ | |
/// For updated code: https://gist.github.com/khalidsalomao/5065646 | |
/// Articles on CodeProject | |
public class SimpleConfiguration |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using MongoDB.Driver; | |
namespace SimpleMongoDb | |
{ | |
public class MongoDbContext | |
{ |
This file contains 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
<Query Kind="Program" /> | |
void Main() | |
{ | |
// initialization | |
if (System.Diagnostics.Debugger.IsAttached) | |
System.Diagnostics.Debugger.Break (); | |
Console.WriteLine ("========================================="); | |
Console.WriteLine ("Warm up phase ..."); |
This file contains 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
<Query Kind="Program" /> | |
void Main() | |
{ | |
// initialization | |
if (System.Diagnostics.Debugger.IsAttached) | |
System.Diagnostics.Debugger.Break (); | |
Console.WriteLine ("========================================="); | |
Console.WriteLine ("Warm up phase ..."); |
This file contains 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
#region * License * | |
/* | |
SimpleHelpers - SimpleFileLock | |
Copyright © 2015 Khalid Salomão | |
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, |
This file contains 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
/*! simpleQueryString v0.5.0 - MIT license */ | |
var simpleQueryString = (function () { | |
"use strict"; | |
// is Array polyfill: https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray | |
if (!Array.isArray) { | |
Array.isArray = function (vArg) { | |
return Object.prototype.toString.call(vArg) === "[object Array]"; | |
}; | |
} |
OlderNewer