プロパティー | 発音 |
---|---|
background-attachment |
バックグラウンド・アタッチメント |
background-color |
バックグラウンド・カラー |
background-image |
バックグラウンド・イメージ |
background-position |
バックグラウンド・ポジション |
background-repeat |
バックグラウンド・リピート |
background |
バックグラウンド |
border-collapse |
ボーダー・コラプス |
border-color |
ボーダー・カラー |
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
E{ | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
margin: auto; | |
width: XXX; | |
height: YYY; | |
} |
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
#!/bin/sh | |
# 奇数ピクセルの画像でスプライト画像を生成するとretinaでズレるのでこれで偶数化する | |
# https://github.com/katapad/evenizer | |
# | |
# $ npm i -g evenizer | |
for file in `find . -name '*.png'`; do | |
evenizer -i ${file} | |
done |
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
#!/bin/sh | |
which AwesomeCommand | |
commandReady=$? | |
if [ "commandReady" = 0 ]; then | |
echo "AwesomeCommand is ready." | |
else | |
echo "AwesomeCommand is not ready." | |
fi |
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 _ua = (function(u){ | |
return { | |
ltIE6:typeof window.addEventListener == "undefined" && typeof document.documentElement.style.maxHeight == "undefined", | |
ltIE7:typeof window.addEventListener == "undefined" && typeof document.querySelectorAll == "undefined", | |
ltIE8:typeof window.addEventListener == "undefined" && typeof document.getElementsByClassName == "undefined", | |
ltIE9:document.uniqueID && typeof window.matchMedia == "undefined", | |
gtIE10:document.uniqueID && window.matchMedia, | |
gtIE11:document.uniqueID && document.documentMode >= 11, | |
Trident:document.uniqueID, | |
Gecko:'MozAppearance' in document.documentElement.style, |
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
// http://blog.webcreativepark.net/2014/04/06-190024.html | |
// @include sprite($a); | |
@mixin r-sprite-width($sprite) { | |
width: nth($sprite, 5)/2; | |
} | |
@mixin r-sprite-height($sprite) { | |
height: nth($sprite, 6)/2; | |
} |
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 ua = navigator.userAgent.toLowerCase(); | |
var device = {}; | |
function _getVersion(ua, token, delimiter) { | |
var verArr = ua.split(token)[1].trim().split(/[^\w\.]/)[0].split(delimiter) | |
return { | |
major: parseInt(verArr[0], 10) || 0, | |
minor: parseInt(verArr[1], 10) || 0, | |
patch: parseInt(verArr[2], 10) || 0 |
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
# http://qiita.com/kaminaly/items/28f9cb4e680deb700833 | |
# --diff-filter=Dがあると期待通りの抽出ができないのでそれを削除している | |
function git_diff_archive() | |
{ | |
local diff="" | |
local h="HEAD" | |
if [ $# -eq 1 ]; then | |
if expr "$1" : '[0-9]*$' > /dev/null ; then | |
diff="HEAD HEAD~${1}" |
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(w, jQ){ | |
var window = w; | |
var $ = jQ; | |
var resizeConfig = { | |
bindSeletor: window, | |
name: 'resize', | |
throttle: true, | |
threshold: 600, | |
observabled: [ |
OlderNewer