Skip to content

Instantly share code, notes, and snippets.

View snmslavk's full-sized avatar
💬

Slava snmslavk

💬
  • Siemens
  • Prague, Czech Republic
  • 20:25 (UTC +01:00)
  • LinkedIn in/avsenev
View GitHub Profile
@kevinbrechbuehl
kevinbrechbuehl / ContentSearchTest.cs
Created July 22, 2015 11:23
Sitecore Content Search Unit Test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Moq;
using NUnit.Framework;
using Sitecore.ContentSearch;
using Sitecore.ContentSearch.Linq;
using Sitecore.ContentSearch.SearchTypes;
@CrocoDillon
CrocoDillon / cookies.js
Last active February 11, 2024 22:42
Export your awesome module using AMD, CommonJS, Node.js or just as global.
/*
* Inspiration (well… copy pasting more or less) from:
* https://github.com/ScottHamper/Cookies/blob/0.3.1/src/cookies.js#L127-L140
*
* Thanks Scott!
*/
(function (global) {
'use strict';
var MyModule = function () {
@valiyo
valiyo / MergeSortAlgorithm.cs
Last active August 6, 2017 05:52
C# interpretation of the top-down implementation of Merge Sort from Wikipedia: http://en.wikipedia.org/wiki/Merge_sort
using System;
using System.Collections.Generic;
using System.Linq;
/* Write a program that sorts an array of integers
* using the merge sort algorithm (find it in Wikipedia). */
class MergeSortAlgorithm
{
public static int[] MergeSort(int[] array)