Skip to content

Instantly share code, notes, and snippets.

@somy-jp
somy-jp / random-color.js
Created September 22, 2017 04:19
ランダムカラー
var getRandomColor = function() {
return '#' + Math.floor(Math.random()*0xffffff).toString(16);
}
@somy-jp
somy-jp / saveShiftJisCSV.js
Last active April 27, 2020 10:42
CSV文字列をUnicodeからShift-JISへ変換してローカルへ保存する
// ecl_array.js(26.256KB)
// https://github.com/wealandwoe/ecl_array.js
// encoding.js(221.71KB)
// https://github.com/polygonplanet/encoding.js
//
// 上記のどちらかを使う
// 比較記事:http://qiita.com/weal/items/3b3ddfb8157047119554
//
// saveAs関数 は FileSaver.js
// https://github.com/eligrey/FileSaver.js/