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
/* Responsive: yes */ | |
/* <system section="theme" selected="6653586347153366095"> */ | |
@import url("http://hatenablog.com/theme/6653586347153366095.css"); | |
/* </system> */ | |
@media (max-width: 767px) { | |
/* グローバルヘッダを消す */ | |
#globalheader-container { | |
display: none !important; | |
} |
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
<script> | |
$(function(){ | |
var text = "ここに適当な文章を入れて下さい"; | |
$('.entry-content').each(function(){ | |
$(this).children("p").each(function(){ | |
if($(this).find('img').length != 1){ | |
$(this).html(text + "</p><p>" + $(this).html()); | |
return false; | |
} | |
}); |
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
<script> | |
$(function(){ | |
var text = "ここに適当な文章を入れて下さい"; | |
$('.entry-content').each(function(){ | |
$(this).children("p").each(function(){ | |
if($(this).find('img').length != 1){ | |
$(this).html($(this).html() + text); | |
return false; | |
} | |
}); |
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
# 必要なライブラリ類を導入 | |
$ su- | |
$ apt-get install -y build-essential vim git-core curl imagemagick libmagickwand-dev libimlib2-dev libgd2-noxpm-dev | |
$ apt-get install -y libssl-dev libxml2-dev libxslt1-dev python-dev | |
# スモールライトの導入 | |
$ cd /usr/local/src/ | |
$ git clone https://github.com/cubicdaiya/ngx_small_light.git | |
$ cd ngx_small_light/ | |
$ ./setup --with-gd --with-imlib2 |
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
ul li:before{ | |
content: "\f219"; | |
font-family: FontAwesome; | |
} |
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
<ul> | |
<li><i class="fa fa-diamond"></i>リスト1</li> | |
<li><i class="fa fa-diamond"></i>リスト2</li> | |
<li><i class="fa fa-diamond"></i>リスト3</li> | |
<li><i class="fa fa-diamond"></i>リスト4</li> | |
</ul> |
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
class PhotoUploader < CarrierWave::Uploader::Base | |
def filename | |
"#{secure_token}.#{file.extension}" if original_filename.present? | |
end | |
protected | |
def secure_token | |
var = :"@#{mounted_as}_secure_token" | |
model.instance_variable_get(var) or model.instance_variable_set(var, SecureRandom.uuid) | |
end |
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
<html> | |
<head> | |
<style> | |
#wrapper{ | |
position: relative; | |
} | |
#header{ | |
position: absolute; | |
left: 0px; | |
top: 0px; |
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
<html> | |
<body> | |
<div id="wrapper"> | |
<div id="header"></div> | |
<div id="container"></div> | |
</div> | |
</body> | |
</html> |
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
#container{ | |
position: absolute; | |
top: 48px; | |
bottom: 0; | |
left: 0px; | |
width: 100%; | |
overflow-y: scroll; | |
} |
NewerOlder