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
" ,dPYb, | |
" IP'`Yb | |
" I8 8I | |
" I8 8' | |
" ,gggg,gg I8 dP gg,gggg, ,gggg,gg ,gggg, ,gggg,gg | |
" dP" "Y8I I8dP I8P" "Yb dP" "Y8I dP" "Yb dP" "Y8I | |
" i8' ,8I I8P I8' ,8i i8' ,8I i8' i8' ,8I | |
" ,d8, ,d8b,,d8b,_ ,I8 _ ,d8' ,d8, ,d8b,,d8,_ _,d8, ,d8b, | |
" P"Y8888P"`Y88P'"Y88PI8 YY88888PP"Y8888P"`Y8P""Y8888PPP"Y8888P"`Y8 | |
" I8 |
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
```vim:.vimrc | |
NeoBundleLazy 'alpaca-tc/alpaca_tags', { | |
\ 'rev' : 'development', | |
\ 'depends': ['Shougo/vimproc', 'Shougo/unite.vim'], | |
\ 'autoload' : { | |
\ 'commands': ['AlpacaTagsUpdate', 'AlpacaTagsSet', 'AlpacaTagsBundle'], | |
\ 'unite_sources' : ['tags'] | |
\ }} | |
let g:alpaca_tags_enable_unite = 1 |
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
function! s:do_lang8_autocmd() "{{{ | |
let pwd = getcwd() | |
if pwd =~ 'lang-8' | |
call s:lang8_settings() | |
else | |
let g:neorspec_command = 'Dispatch rspec {spec}' | |
endif | |
endfunction"}}} |
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
showJournalCommentLikeUsers: function(e) { | |
var $target = $(e.currentTarget); | |
jQuery.ajax(type: 'GET', url: $target.attr('href')).done(function(data, status) { | |
$(data).dialog({ title: 'People who likes this comment.' }); | |
}); | |
return false; | |
}, |
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
<%= | |
target_url = {:controller => :spam_reports, :action => :report_comment, :url => @journal.canonical_url, :comment_body => reply.body[0..300], :spammer_id=> reply.user.id, :reporter_id => current_uid} | |
confirm_message = 'Are you sure you want to report this comment as spam?' | |
loding_jq = "$j('#reply_loader_#{reply.id}').show();" | |
success_jq = "$j('#reply_loader_#{reply.id}').hide();$j('#alert-box').alerter('alertSuccess', '', 'Report sent.' );" | |
link_to_remote('Report spam', :url => target_url, :confirm => confirm_message, :loading => loding_jq, :success => success_jq) | |
-%> |
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
<div class="cfx reply_commentblock" id="journal_comment_<%= reply.id %>" class="<%= classes ||= "" %>" <%= (hide_column ||= false) ? 'style="display:none;"' : '' %>> | |
<p class="f_left"><%= link_to image_tag(img_url(reply.user.profile.image, :w => 30), :alt => '', :class => 'user_icon'), "/#{reply.user.get_url}" -%></p> | |
<div class="pos_relative f_right box_reply"> | |
<div class="cfx comment_status_bar_body"> | |
<div class="small_left_arrow f_left"></div> |
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
# each_with_objectの使い方 | |
# ---------------------------------------- | |
# 1. 簡単な使い方 | |
each_with_objectは、引数のメモ化用オブジェクトを渡して、最後に必ず返す。 | |
alpha_1 = [] | |
('a'..'z').each do |str| | |
alpha_1 << str.upcase |
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
_cachefile_updated_at() { | |
echo $(stat -f "%c" .rake_tasks) | |
} | |
_rakefile_updated_at() { | |
echo $(stat -f "%c" Rakefile) | |
} | |
_gemfile_updated_at() { | |
echo $(stat -f "%c" Gemfile) |
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
aug MyAutoCmd | |
au! | |
aug END | |
"---------------------------------------- | |
"基本"{{{ | |
" let $SHELL="/usr/local/bin/zsh" | |
" set shell=/usr/local/bin/zsh | |
let mapleader = "," | |
set backspace=indent,eol,start |
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
"------------------------------------ | |
" eskk.vim | |
"------------------------------------ | |
" "{{{ | |
" " set imdisable | |
let g:eskk#debug = 0 | |
" let g:eskk#egg_like_newline = 1 | |
" let g:eskk#revert_henkan_style = "okuri" | |
let g:eskk#enable_completion = 1 | |
let g:eskk#directory = "~/.eskk" |