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
window.onload = function() { | |
var canvas = document.createElement('canvas'); | |
canvas.width = 640; | |
canvas.height = 480; | |
document.body.appendChild(canvas); | |
var context = canvas.getContext('2d'); | |
var player = Object(); | |
var obstacles = [Object(), Object(), Object()]; |
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
set -g prefix C-t | |
unbind C-b | |
set -sg escape-time 0 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
bind C-h select-pane -L |
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
Hoge.first.try(:name) | |
# => メソッドや変数の呼び出しで、objがnilでも例外を発生させずに通れる |
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
# デフォでコメントアウトされてるの外すだけ | |
Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f } | |
RSpec.configure do |config| | |
config.include WaitFor | |
end |
OlderNewer