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
function duck { set-browser duck } | |
function edge { set-browser edge } | |
function set-browser { | |
param([string] $name) | |
$browserPositionMap = @{ | |
chrome = "{TAB 2}" | |
duck = "" | |
edge = "{TAB 4}" |
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
(function(n) { | |
function t(n) { | |
function i() { | |
try { | |
var t = "__some_random_key_we_are_not_going_to_use__"; | |
return n().setItem(t, t), | |
n().removeItem(t), | |
!0 | |
} catch (i) { | |
return false; |
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.Threading.Tasks; | |
using NUnit.Framework; | |
namespace Tests { | |
[TestFixture] | |
public class ConcurrentListAddTest { | |
[Test] |
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
var missingCpsInside = _.filter(result.campsiteInside, function(cp) { | |
// using the `_.matchesProperty` callback shorthand | |
return !_.any(currentHitMarkers, 'id', cp.id); | |
}); |
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 Orchard.ContentManagement; | |
using Orchard.ContentManagement.FieldStorage.InfosetStorage; | |
using Orchard.ContentManagement.Records; | |
namespace Nwazet.Commerce.Tests.Helpers { | |
public class ContentHelpers { | |
public static ContentItem PreparePart<TPart, TRecord>(TPart part, string contentType, int id = -1) | |
where TPart : ContentPart<TRecord> | |
where TRecord : ContentPartRecord, new() { |
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
/* see https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide */ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Web; |
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
/* based on the docs at: https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide */ | |
/* | |
* LICENSE: MIT | |
* AUTOHR: [email protected] | |
*/ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; |
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
public class LanguageSpecificFileRule : RegExRewriteRule | |
{ | |
private string _defaultLanguageIso2; | |
public override void Initialize(UrlRewritingNet.Configuration.RewriteSettings rewriteSettings) | |
{ | |
base.Initialize(rewriteSettings); | |
_defaultLanguageIso2 = rewriteSettings.GetAttribute("defaultLanguage", "de").ToLowerInvariant(); |