Skip to content

Instantly share code, notes, and snippets.

@j2jensen
j2jensen / BenchmarkTemplate.cs
Created November 10, 2010 00:22
Fill in the blanks to test the difference in performance between different actions.
void Main()
{
var actions = new[]
{
new TimedAction("first", () =>
{
// Insert logic here.
}),
new TimedAction("second", () =>
{
@hyle
hyle / ko.utils.signatures.js
Last active August 6, 2024 08:17
KnockoutJS utils (ko.utils) signatures
// knockout 2.2.1
ko.utils.arrayFilter = function (array, predicate) { /* .. */ }
ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ }
ko.utils.arrayForEach = function (array, action) { /* .. */ }
ko.utils.arrayGetDistinctValues = function (array) { /* .. */ }