Skip to content

Instantly share code, notes, and snippets.

@ruedap
ruedap / extend.css
Created March 9, 2013 08:13
Sass: mixin or extend
/* 6 selectors */
.a, .a .b, .a .b .c {
color: red;
}
.a, .a .b, .a .b .c {
font-size: 10px;
}
@ruedap
ruedap / gist:5035744
Last active December 14, 2015 05:29 — forked from mochiz/gist:4736183
ruby2.0.0-p0のインストール

ruby2.0.0-p0のインストール

$ brew update
$ brew upgrade rbenv
$ cd ~/.rbenv/plugins/ruby-build
$ git pull
@ruedap
ruedap / gist:4004042
Created November 2, 2012 20:13
config.ru of Sinatra for static pages
require 'rubygems'
require 'sinatra'
set :public_folder, File.dirname(__FILE__) + '/'
get('/') { open('index.html').read }
run Sinatra::Application
@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

@ruedap
ruedap / gist:3789056
Created September 26, 2012 16:35
Fancy Buttons setup for Rails 3.2
@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 / 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 / _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 / 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'}