Skip to content

Instantly share code, notes, and snippets.

set nocompatible
set nobackup
set hidden
set history=100
filetype plugin indent on
scriptencoding utf-8
autocmd!
set backspace=indent,eol,start
" indent
escape ^Tt
startup_message off
vbell off
autodetach on
defencoding utf-8
encoding utf-8 utf-8
hardstatus alwayslastline "%{= wk} %-w%{=bu dg}%n %t%{-}%+w %= %{=b wb}%y/%m/%d %{=b wb}%c"
shelltitle "$ |bash"
bind r eval 'echo "Resize window"' 'command -c resize'
@aisuii
aisuii / gist:784229
Created January 18, 2011 09:53
.vimrc.minimal
set nocompatible
set hidden
set nobackup
set history=100
filetype plugin indent on
scriptencoding utf-8
autocmd!
set tabstop=4 softtabstop=4 shiftwidth=4
autocmd FileType ruby setlocal tabstop=2 softtabstop=2 shiftwidth=2
var NameSpace = (function(){
var private_method = function(){
alert("private");
}
var public_method = function(){
private_method();
}
return {
public_method: public_method
}
@aisuii
aisuii / gist:913363
Created April 11, 2011 11:04
utils
var APP = {};
APP.data = (function(){
var data = {};
var exports = {};
var getData = function(key) {
return data[key];
};
exports.getData = getData;
@aisuii
aisuii / gist:917243
Created April 13, 2011 09:10
some_module/config.rb
require 'singleton'
require 'yaml'
require 'rubygems'
require 'active_support/core_ext'
module SomeModule
module Config
def self.included(klass)
klass.extend ClassMethods
end
# rvm use xxx するたびきりかわってよくない
current_gems_sym_path="${HOME}/.current_gems"
current_gems_path="${rvm_path}/gems/${rvm_ruby_string}/gems"
if [[ -L $current_gems_sym_path ]] ; then
rm $current_gems_sym_path
elif [[ -f "${current_gems_sym_path}" ]] ; then
echo "${current_gems_sym_path} exist!"
return
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://ameblo.jp/oshima-y/entry"),
url-prefix("http://ameblo.jp/oshima-y/page"),
url-prefix("http://ameblo.jp/oshima-y/theme"),
url("http://ameblo.jp/oshima-y"),
url("http://ameblo.jp/oshima-y/") {
#amebaBar,
#profile,
#calendar,
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://blog.oricon.co.jp/no3b/") {
#links-left,
#links,
.adView,
table[background$="blog_header_bg.jpg"],
div[style] {
display: none !important;
}
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("http://ameblo.jp/atsuko-maeda") {
#amebaBar,
#message,
#advertising3,
#footer_ad_official,
#sub_a,
#themeBox,
#exLinkBtn,