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
module PaperclipStorageOption | |
module ClassMethods | |
def options | |
Rails.env.production? ? production_options : default_options | |
end | |
private | |
def production_options | |
{ |
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
* { | |
font-family: "Lato", Arial; | |
} | |
header#header { | |
display: none; | |
} | |
input { | |
color: #676767; | |
font-size: 11px; |
###How to use enable vi mode Here
Press prefix and '['. Ex: Ctrl B [
I use Ctrl A for prefix
###My recommend
After go to vi mode prefix [
Base on rails guide
- module include, extend
- scope (default first, then other scopes)
- constant
- attr
- association
- validate
- callback
- method
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 Traxex < Hero::RangedAgilityHero | |
# many things above | |
# .... | |
def normal_attack | |
arrow_shoot(base_damage) | |
end | |
def frost_arrows_attack | |
@is_iced_stun_affected = true |
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 Traxex | |
# st above | |
def attack | |
# do st | |
end | |
end | |
class AttackDecorator | |
def initialize(hero_object) |
OlderNewer