This file contains 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
[project_name].swf | |
Thumbs.db | |
.DS_Store | |
*.swp | |
*-config.xml | |
.rvmrc | |
.rbenv-version | |
.screenrc | |
.rbenv-gemsets | |
*.swo |
This file contains 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! DefSetter(name,type) | |
return "public function set " . a:name . "(v:" . a:type ."):void{ _" . a:name ." = v; }" | |
endfunction | |
function! DefGetter(name,type) | |
return "public function get " . a:name . "():" .a:type . "{ return _" . a:name ."; }" | |
endfunction | |
function! DefPrivateVariable(name,type) | |
return "private var _" . a:name . ":" .a:type . ";" |
This file contains 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
syntax on | |
set autoindent | |
set tabstop=2 | |
set softtabstop=2 | |
set expandtab | |
set laststatus=2 | |
set statusline=[%L]\ %t\ %y%{'['.(&fenc!=''?&fenc:&enc).':'.&ff.']'}%r%m%=%c:%l/%L | |
filetype on | |
filetype plugin on |
This file contains 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
# encoding: utf-8 | |
# | |
# usage: ChatworkAPI.new.assign_task_to_all_members('room_id','task body') | |
# | |
require 'net/https' | |
require 'uri' | |
require 'json' | |
class ChatworkAPI |
This file contains 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
# usage: ruby insert_property_annotation.rb < file | |
lines = STDIN.readlines | |
lines.each do |line| | |
if !(line =~ / class /) && line =~ /(\s+?)(public|private) (.+?) (.+?)[\s;]/ | |
puts %W(#{$1}@property("#{$4.underscore}")) | |
puts line | |
else | |
puts line | |
end |
This file contains 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
class SamuraiAi | |
def read_game_info | |
@total_turns,@num_daimyos,@num_lords = self.read_integers | |
@military_strength = self.read_integers | |
end | |
def read_turn_info | |
@turn,@time = STDIN.gets.split(' ') | |
@turn = @turn.to_i | |
@ints = [] |
This file contains 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
https://github.com/kishikawakatsumi/BuildNumber |
This file contains 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
if has('vim_starting') | |
set nocompatible " Be iMproved | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
" Required: | |
call neobundle#begin(expand('~/.vim/bundle/')) |
NewerOlder