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/bash | |
PATH_RECIPES=(calibreインストールディレクトリ)/calibre/resources/recipes | |
PATH_EBOOKS_OUT=(ebook出力先ディレクトリ) | |
# 実行前に出力先ディレクトリをクリーン | |
rm $PATH_EBOOKS_OUT/* | |
# ebook生成 | |
xvfb-run ebook-convert $PATH_RECIPES/reuters_ja.recipe $PATH_EBOOKS_OUT/reuters_ja.mobi --output-profile kindle --tags "Reuters(Japan),ニュース" |
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
/* applying basic page frame, 2 column-format, background and spacing */ | |
html { | |
background-image: url(img/background.jpg); | |
background-repeat: repeat; } | |
body { | |
font-family: sans-serif; | |
color: #4b4b4b; | |
width: 980px; | |
margin: 20px auto; |
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
icon-width = 20px | |
legger-width = 80px | |
li | |
// 通常時はアイコンだけ表示 | |
white-space nowrap | |
width icon-width | |
color rgba(128, 128, 192, 0.0) | |
// カーソルを話したときもうにょーっと狭まる | |
transition width 1.2s ease |
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
body { | |
background: none repeat scroll 0 0 #333344; | |
font-family: Osaka,Helvetica Neue,Helvetica,Arial; | |
font-size: 14px; | |
text-align: center; | |
} | |
h1 { | |
color: #FFFFFF; | |
font-size: 70px; | |
padding: 30px 0 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
@charset "utf-8" | |
// :before, :after を使用して要素を追加する場合によく使うパターン | |
blockForPseudo(position, width, height) | |
content "" | |
display block | |
position position | |
width width | |
height height |
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 | |
sudo apt-get install git | |
alias g=git | |
echo "alias g=git" >> ~/.bashrc | |
g config --global user.name onjiro | |
g config --global user.password [email protected] | |
g config --global alias.co checkout | |
g config --global alias.br branch |
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 | |
sudo apt-get install curl | |
git clone git://github.com/creationix/nvm.git ~/.nvm | |
. ~/.nvm/nvm.sh | |
echo ". ~/.nvm/nvm.sh" >> ~/.bashrc | |
echo "enter node version you want to install..." | |
read -p "ex.) v0.6.11 > " version |
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
<html> | |
<head> | |
<style type="text/css"> | |
/* アイコンは次のサイトのとか使わせてもらったらそれっぽいかも */ | |
/* http://hail2u.net/blog/webdesign/shirokuro-social-icons-v1.5.html */ | |
body { | |
z-index: 0; | |
margin-left: 80px; | |
margin-top: 80px; | |
background-color: #aaa; |
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
# 次の置換と同じ。 | |
# grep -lre h1 検索対象ディレクトリ | xargs sed -i 's/h1/h2/g' | |
grep -lre 'h1' 検索対象ディレクトリ | xargs -n 1 -i sh "cp {} tmp; sed -e 's/h1/h2/g' ./tmp > {}" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
<!-- | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
html, body { |