https://gist.github.com/ethertank/e3bb18a54dbbed1eaaa1
http://bl.ocks.org/ethertank/e3bb18a54dbbed1eaaa1
http://bl.ocks.org/ethertank/raw/e3bb18a54dbbed1eaaa1
This file contains 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
/********************************************************************************************** | |
* | |
* Windows7 のコントロールパネルの「サウンド」に表示されている再生・録音デバイスの内、 | |
* 一番上にあるものを一旦無効化し再度有効化する(再起動)スクリプト | |
* | |
* Auther: ethertank | |
* Usage: 当ファイルをPC内の任意の場所に配置し、右クリックメニューより編集を選択し、 | |
* 文字コードを Unicode として保存。ショートカットを作成しておく。 | |
* ショートカットをダブルクリックで実行。 | |
**********************************************************************************************/ |
This file contains 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
var | |
zikkan /*十干(天干)*/, | |
eto /*十二支(地支)*/, | |
kanshi /*干支*/; | |
zikkan = "甲乙丙丁戊己庚辛壬癸".split(""); | |
eto = "子丑寅卯辰巳午未申酉戌亥".split(""); |
This file contains 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 f (min, max, length) { | |
var arr = [], | |
i = 0; | |
for (; i < length; i++) { | |
arr.push( | |
i % (max - min + 1) + min | |
); | |
} | |
This file contains 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
Getting hue, lightness and saturation. Under construction. | |
カラーコードから色相、彩度、明度を抽出。作成中。 |
This file contains 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
/* | |
* jQuery_huwahuwaTumhuwrImage.js | |
* | |
* Varsion: 0.1.0 | |
* PublishDate: 2014-07-07 02:55 | |
* LastUpdate : 2014-07-30 23:45 | |
* Copyright (c) 2014 ethertank.jp | |
* Licensed under the MIT | |
* | |
* jQuery required (tested on 1.8.3) |
This file contains 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
//初期値 | |
var defaultSetting = { | |
width: 400, | |
height: 300, | |
color: "black" | |
}; | |
//前回実行時に localStorage に setting が追加されていたらそれを読む。 | |
//無ければ defaultSetting オブジェクトを。 | |
var setting = JSON.parse(localStorage.getItem("setting")) || defaultSetting; |
This file contains 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
// パクリ from http://d.hatena.ne.jp/ogakky/20110720/1311159218 | |
function toHankakuSuuzi_A (str) { | |
var zen = "0123456789".split(""); | |
var han = "0123456789".split(""); | |
for (var i = 0; i < zen.length; i++) { | |
str = str.replace(new RegExp(zen[i], 'gm'), han[i]); | |
} | |
return str; | |
} |
This file contains 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
// document.body.style | |
// ※これだと length プロパティなどもふくまれてしまうので目視で削除・加工 | |
// 何か良い方法は無いものか | |
var webkitCssStyles = [ | |
"alignContent", | |
"alignItems", | |
"alignSelf", | |
"alignmentBaseline", | |
"background", |
This file contains 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
/*jshint multistr: true */ | |
// 全ての艦名 (改造艦は含まない) | |
var allKanmusu = | |
"長門, 陸奥, 伊勢, 日向, 雪風,\ | |
赤城, 加賀, 蒼龍, 飛龍, 島風,\ | |
吹雪, 白雪, 初雪, 深雪, 叢雲,\ | |
磯波, 綾波, 敷波, 大井, 北上,\ | |
金剛, 比叡, 榛名, 霧島, 鳳翔,\ |
NewerOlder