header.php ヘッダー部分
index.php メイン部分
sidebar.php サイドバー部分
footer.php フッター部分
single.php 投稿記事のテンプレート
page.php ページのテンプレート
comments.php コメントのテンプレート
search.php 検索結果のテンプレート
searchform.php 検索フォームのテンプレート
archive.php アーカイブのテンプレート
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 getRandomFloat(min, max) { | |
return Math.random() * (max - min) + min; | |
} |
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
sample:before { | |
content: "\f14a"; | |
font-family: FontAwesome; | |
} |
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 sample() { | |
df().then(function() { | |
}); | |
} | |
function df() { | |
var d = new $.Deferred; | |
$("sample").fadeIn(200, function() { | |
d.resolve(); //d.reject('Error!!'); |
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
#skip file | |
git update-index --skip-worktree file | |
#no-skip file | |
git update-index --no-skip-worktree file | |
#display all skip files | |
#"S" means skip | |
git ls-files -v | grep ^S |
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
//DOM生成を単純に繰り返すと3000ms | |
console.time('createNode'); | |
for (var i = 0; i < 100000; i++) { | |
$('#Main').append('<div>' + i + '</div>'); | |
} | |
console.timeEnd('createNode'); | |
//キャッシュすると300ms | |
var dom = ''; | |
for (var i = 0; i < 100000; 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
AuthUserFile /home/hoge/.htpasswd | |
AuthGroupFile /dev/null | |
AuthName "enter password" | |
AuthType Basic | |
require valid-user |
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
Satisfy any | |
order allow,deny | |
allow from all |
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
RewriteEngine on | |
RewriteBase /sample/html/ | |
RewriteCond %{REQUEST_URI} !/sp/ | |
RewriteCond %{HTTP_USER_AGENT} (iPod|iPhone|iPad|Android|Windows\ Phone) | |
RewriteRule ^(.*)$ sp/$1 [R] | |
RewriteBase /sample/html/ | |
RewriteCond %{REQUEST_URI} /sp/ | |
RewriteCond %{HTTP_USER_AGENT} !(iPod|iPhone|iPad|Android|Windows\ Phone) |
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
AuthUserFile absolute_path | |
AuthGroupFile /dev/null | |
AuthName "Please enter your ID and password" | |
AuthType Basic | |
require valid-user | |
<Files ~ "^\.(htaccess|htpasswd)$"> | |
deny from all | |
</Files> |