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
{ | |
"solargraph.diagnostics": true, | |
"solargraph.useBundler": false, | |
"diagnostic.format": "%message [%source]", | |
"diagnostic.virtualText": true, | |
"diagnostic.checkCurrentLine": true, | |
"diagnostic.separateRelatedInformationAsDiagnostics": 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
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# set first window to index 1 (not 0) to map more to the keyboard layout... | |
set-option -g base-index 1 | |
set-window-option -g pane-base-index 1 | |
set-window-option -g mouse on | |
set-window-option -g mode-keys vi |
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
My Dotfiles | |
brew install fzf | |
brew install xclip | |
brew install autojump |
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
def tt_print(): | |
print('Hello Load') |
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 Cappuccino < CaffeineBeverage | |
def brew_condiments | |
puts 'brew cappuccino grinds' | |
end | |
def add_aditional_condiments | |
puts 'add sugar' | |
end | |
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 CaffeineBeverage | |
def prepare_recipe | |
boil_water | |
brew_condiments # new method | |
add_aditional_condiments # new method | |
pour_in_cup | |
end | |
private | |
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
cappuccino = Cappuccino.new | |
cappuccino.prepare_recipe | |
# => boil water | |
# => brew cappuccino grinds | |
# => pour in cup | |
# => add sugar | |
tea = Tea.new | |
tea.prepare_recipe | |
# => boil water |
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 CaffeineBeverage | |
def prepare_recipe | |
# Abstract method without implementation | |
end | |
def boil_water | |
puts 'boil water' | |
end | |
def pour_in_cup |
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 Cappuccino | |
def prepare_recipe | |
boil_water | |
brew_cappuccino_grinds | |
pour_in_cup | |
add_sugar | |
end | |
private | |
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
receivers = [] | |
subject = 'Some subject' | |
content = 'Some content' | |
ios_app_token = 'Ja80-1jd81-AlI71' | |
ios_strategy = IosStrategy.new(ios_app_token) | |
ios_notification = Notification.new(ios_strategy, receivers, subject, content) | |
email_from = '[email protected]' |
NewerOlder