This file contains hidden or 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
bucketSort = function(src, k2i, v2k) { | |
if (src.length <= 1) return src; | |
k2i = k2i || function(k, d){ return (''+k).charCodeAt(d) || 0 }; | |
v2k = v2k || function(v){ return v }; | |
/* first we bundle elements with same keys */ | |
var valOf = Object.create(null), concat = Array.prototype.concat; | |
src.forEach(function(v){ | |
var k = v2k(v); | |
if (valOf[k]) valOf[k].push(v); | |
else valOf[k] = [v]; |
This file contains hidden or 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
master: http://ftp.freebsd.org/pub/FreeBSD/ | |
mirrors: | |
- http://ftp.iij.ad.jp/pub/FreeBSD/ | |
- http://ftp.riken.jp/pub/FreeBSD/ | |
- http://ftp.sakura.ad.jp/pub/FreeBSD/ | |
- http://ftp.jaist.ac.jp/pub/FreeBSD/ |
This file contains hidden or 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
=head1 NAME | |
Plack::Loader - (auto)load PSGI/Plack Servers | |
=head1 SYNOPSIS | |
#!/usr/bin/env perl | |
# printenv-like app in PSGI, F?CGI, AnyEvent, Coro, POE or Danga::Socket | |
use strict; | |
use warnings; |
NewerOlder