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
@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
@alexhawkins
alexhawkins / nativeJavaScript.js
Last active November 1, 2024 12:00
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
@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