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
src=${HOME}/src | |
vimpath=${HOME}/bin/vim73 | |
mkdir -p $src | |
mkdir -p $vimpath | |
cd $src | |
hg clone https://vim.googlecode.com/hg/ vim | |
cd vim | |
./configure --prefix=$vimpath --enable-multibyte --with-features=huge --without-x --disable-gui | |
make && make install |
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 | |
OSTYPE=`uname` | |
SED="sed" | |
if [ "${OSTYPE}x" != 'Linuxx' ] | |
then | |
SED="gsed" | |
fi | |
for i in `find app config db lib test spec -type f \( -name '*.rb' -o -name '*.rjs' -o -name '*.erb' -o -name '*.sel' \)` |
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
require 'rack' | |
HANDLER = Rack::Handler::Thin | |
PORT = 9292 | |
PUBLIC_DIR = "public" | |
module Rack | |
class File | |
def _call(env) | |
@path_info = Rack::Utils.unescape(env["PATH_INFO"]) |
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
# -*- coding: utf-8 -*- | |
require 'open-uri' | |
require 'rubygems' | |
require 'active_support/core_ext' | |
class GetQrcode | |
API_URL = "http://chart.apis.google.com/chart" | |
API_TYPE = "qr" | |
IMAGE_SIZE = "100x100" |
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
@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, |
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
@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; | |
} |
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
@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, |
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
# 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 |
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
require 'singleton' | |
require 'yaml' | |
require 'rubygems' | |
require 'active_support/core_ext' | |
module SomeModule | |
module Config | |
def self.included(klass) | |
klass.extend ClassMethods | |
end |
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
var APP = {}; | |
APP.data = (function(){ | |
var data = {}; | |
var exports = {}; | |
var getData = function(key) { | |
return data[key]; | |
}; | |
exports.getData = getData; |