Skip to content

Instantly share code, notes, and snippets.

View GokselKUCUKSAHIN's full-sized avatar
📚
Do you know there's a library for that!

Göksel Küçükşahin GokselKUCUKSAHIN

📚
Do you know there's a library for that!
View GitHub Profile
@noahhai
noahhai / wilcoxon_signed_rank_test.js
Created November 12, 2019 11:58
Wilcoxon Signed Rank Test in Javascript
"use strict";
const rank = {
/*
* Standart ranking
*
* The MIT License, Copyright (c) 2014 Ben Magyar
*/
standard: function(array, key) {
// sort the array
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active April 28, 2024 08:52
Implementation of Native JavaScript Methods (forEach, Map, Filter, Reduce, Every, Some)
'use strict';
/*****************NATIVE forEACH*********************/
Array.prototype.myEach = function(callback) {
for (var i = 0; i < this.length; i++)
callback(this[i], i, this);
};
//tests
@nrabinowitz
nrabinowitz / quantize.js
Created July 25, 2011 17:19
Javascript module for color quantization, based on Leptonica
/*!
* quantize.js Copyright 2008 Nick Rabinowitz.
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
// fill out a couple protovis dependencies
/*!
* Block below copied from Protovis: http://mbostock.github.com/protovis/
* Copyright 2010 Stanford Visualization Group
* Licensed under the BSD License: http://www.opensource.org/licenses/bsd-license.php