- ビルドツールを ant から grunt に変更
- sourcemap 埋め込み
- 0.2.0 修正内容ブログ書き
- 検証: ハフマン符号の function 生成化 (see: https://twitter.com/y_imaya/status/442954919591428096)
JavaScript を使っていると「JavaScript出来るの? jQuery / AngularJS / Node.js etc... で困ってるんだけどさー」みたいな話を振られることがあります。 そういった時に、自分は一般的なライブラリの使い方やフレームワークに対して大した知見も興味もないので、わざわざ説明するのも面倒なのでこうして文章にしておきます。(本当に届いて欲しい人に限って、こういう文章が届かないのはわかっていますが、文章を書くこと自体が気晴らしだと思って諦めます。)
先ほどのような話は自分に限ったことではなく、たぶん経験のある人も多いでしょう。 振られた話が自分の分かる範囲、あるいは興味のあるものならばまだ良いのですが、そうでないことがあまりに多すぎます。 話を振られるだけならともかく「JavaScriptできるんでしょ? じゃあ jQuery つかったこのサービスのメンテしてほしいんだけどー」みたいに仕事として振られることもあり、そう言う時は脳みそ取り出して洗剤で洗った方が良いのでは、と思うことも多々あります。
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
if (window.Uint8Array !== void 0) { | |
try { | |
String.fromCharCode.apply(null, new Uint8Array([0])); | |
} catch(e) { | |
String.fromCharCode.apply = (function(fromCharCodeApply) { | |
return function(thisobj, args) { | |
return fromCharCodeApply.call(String.fromCharCode, thisobj, Array.prototype.slice.call(args)); | |
} | |
})(String.fromCharCode.apply); | |
} |
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
function adler32_asm(array) { | |
function asm(stdlib, foreign, heap) { | |
"use asm"; | |
var array = new stdlib.Uint8Array(heap); | |
function adler32(length) { | |
length = length | 0; | |
return update(1, length) | 0; |
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
function crc32_asm() { | |
var table = new Uint32Array([ | |
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, | |
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, | |
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, | |
0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, | |
0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, | |
0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, | |
0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, | |
0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, |
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
test: | |
which /bin/bash || { echo "please install bash to /bin/bash"; exit 1 ; } | |
which base64 || { echo "please install base64"; exit 1 ; } | |
which find || { echo "please install find"; exit 1 ; } | |
which sed || { echo "please install sed"; exit 1 ; } | |
which unzip || { echo "please install unzip"; exit 1 ; } | |
which xargs || { echo "please install xargs"; exit 1 ; } | |
which zip || { echo "please install zip"; exit 1 ; } | |
which zstd || { echo "please install zstd"; exit 1 ; } |
OlderNewer