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
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ | |
0123456789ABC | |
DEFGHIJKLMNOPQRS | |
TUVWXYZabcdefghi | |
jklmnopqrstuvwxy | |
zぁあぃいぅうぇえぉおかがきぎく | |
ぐけげこごさざしじすずせぜそぞた | |
だちぢっつづてでとどなにぬねのは | |
ばぱひびぴふぶぷへべぺほぼぽまみ | |
むめもゃやゅゆょよらりるれろゎわ |
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
// [0, n)の値をn個ランダムで生成した配列を返す | |
function makeRandomNumberArr(n) { | |
let arr = []; | |
let i = 0; | |
let num; | |
while(i < n) { | |
num = Math.floor(Math.random() * n); | |
if(~arr.indexOf(num)) continue; | |
arr.push(num); | |
i++; |
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 combination(n, m) { | |
var arr = []; | |
var num; | |
var i = 0; | |
while(i < m) { | |
num = Math.floor(Math.random() * n); | |
if(~arr.indexOf(num)) continue; | |
arr.push(num); | |
i++; | |
} |
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
// http://qiita.com/nyawach/items/108c8e2551c26674f57b | |
function combination(n, m) { | |
var list = []; | |
m = (m == null) ? n : m; | |
for(var i=n-1; i--;) list.push(i); | |
for(var i=list.length,j;--i;){ | |
j = Math.random()*(i+1) | 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
#!/bin/sh | |
# 設定 ############ | |
# DB構築に必要な設定 | |
DB_NAME="" | |
DB_USER="root" | |
DB_PASS="" | |
DB_HOST="127.0.0.1" | |
DB_PREFIX="wp_" |
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 factrical(n) { | |
if(typeof n !== "number") return "Not Number"; | |
return n === 1 ? 1 : n * factrical(n-1); | |
} |
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
javascript:var img=new Image(); img.src="https://images-na.ssl-images-amazon.com/images/I/41kEvP4RfXL._SX342_.jpg"; img.style.position="absolute"; img.style.opacity=0.01; img.style.bottom=0; img.style.right=0; var op = 0; var val = 0.01; img.onload = function() { var tid = setInterval(function(){ img.style.opacity = op; op += val; if(img.style.opacity >= 0.5) clearInterval(tid); }, 80); document.body.appendChild(img); } |
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
// letter-spacingは span + span にmargin-leftを指定することでいい感じにできる | |
=condensed($size, $scale: 0.7) | |
display: flex | |
overflow: visible | |
font-size: #{$size}px | |
& > span | |
display: flex | |
justify-content: center | |
align-items: center | |
transform: scaleX($scale) |
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 getRandomFlattenNum(min, max, divide) { | |
let n = Math.random() * (max - min) + min; | |
n = flattenNum(n, divide); | |
return n; | |
} | |
function flattenNum(n, d) { | |
return n = n - (n % d); | |
} |
OlderNewer