Skip to content

Instantly share code, notes, and snippets.

" こういうHTMLがあったときに
" <div id="hoge" class="fuga">
" ...
" </div>
"
" 実行するとこうなる
" <div id="hoge" class="fuga">
" ...
" <!-- /div#hoge.fuga --></div>
@ruedap
ruedap / application.css.scss
Created September 2, 2012 19:24
Sticky Footer CSS for Twitter Bootstrap
// Sticky Footer CSS
// http://www.cssstickyfooter.com/
$sticky-footer-height: 80px; // must be same height as the footer
* {
margin: 0;
padding: 0;
}
@ruedap
ruedap / application.html.haml
Created September 4, 2012 19:10
HTML5 Boilerplate v2.0 in HAML
!!! 5
-# paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
/[if lt IE 7] <html class="no-js ie6 oldie" lang="en">
/[if IE 7] <html class="no-js ie7 oldie" lang="en">
/[if IE 8] <html class="no-js ie8 oldie" lang="en">
-# Consider adding a manifest.appcache: h5bp.com/d/Offline
/[if gt IE 8] <!--> <html class="no-js" lang="en"> <!--
%head
%meta{:charset => 'utf-8'}
@ruedap
ruedap / _html5boilerplate.css.sass
Created September 4, 2012 19:13 — forked from richardvenneman/_html5boilerplate.css.sass
HTML5 Boilerplate HAML & SASS
/*
* HTML5 ✰ Boilerplate
*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*
* Detailed information about this CSS: h5bp.com/css
*
* ==|== normalize ==========================================================
@ruedap
ruedap / custom.haml
Created September 4, 2012 19:22
HTML5 Boilerplate for Haml
!!!
/[if lt IE 7] <html class="ie6" lang="ja">
/[if IE 7] <html class="ie7" lang="ja">
/[if IE 8] <html class="ie8" lang="ja">
<!--[if gt IE 8]><!-->
%html{lang: "ja"}
<!--<![endif]-->
%head
%meta{:charset => "utf-8"}/
%meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}/
@ruedap
ruedap / .vimrc
Created September 10, 2012 17:37 — forked from qickstarter/.vimrc
"------------------------------------
" vim-rails.vim
"------------------------------------
""{{{
"有効化
let g:rails_some_option = 1
let g:rails_level = 4
let g:rails_syntax = 1
let g:rails_statusline = 1
let g:rails_url='http://localhost:3000'
"----------------------------------------
" vim-ref
"----------------------------------------
"{{{
let g:ref_use_vimproc = 1
let g:ref_open = 'split'
let g:ref_cache_dir = expand('~/.Trash')
" PATHを設定する
let g:ref_refe_cmd = expand('~/.vim/ref/ruby-ref1.9.2/refe-1_9_2')
@ruedap
ruedap / gist:3734140
Created September 16, 2012 19:55
zshのインストール

zshのインストール

Homebrewからインストール

$ brew install zsh

bashからzshへの移行

使用できるシェル一覧リスト(/etc/shells)にHomebrewからインストールしたzshを追記する。

$ sudo sh -c "echo '/usr/local/bin/zsh' >> /etc/shells"

$ cat /etc/shells

@ruedap
ruedap / gist:3789056
Created September 26, 2012 16:35
Fancy Buttons setup for Rails 3.2
@ruedap
ruedap / 0.md
Created October 28, 2012 18:35
Sublime Text 2 Settings

Sublime Text 2 Settings

Sync Settings by Dropbox

% cd $HOME/Library/Application\ Support
% mv Sublime\ Text\ 2 $HOME/Dropbox/dotfiles/apps/Sublime\ Text\ 2/Application\ Support
% ln -s ~/Dropbox/dotfiles/apps/Sublime\ Text\ 2/Application\ Support/ Sublime\ Text\ 2

(via) https://speakerdeck.com/kentaro/sublime-text-2-for-emacsers