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
| class Configuration | |
| attr_accessor :tail_logs, :max_connections, :admin_password | |
| def app_server | |
| @app_server ||= AppServer.new | |
| yield(@app_server) if block_given? | |
| @app_server | |
| end |
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
| local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})" | |
| PROMPT='%{$fg[blue]%}[%{$reset_color%}${smiley}%{$fg[blue]%}]%{$reset_color%} %{$fg_bold[green]%}%p%{$fg[cyan]%}%{$fg_bold[yellow]%}%{$fg_bold[yellow]%} % %{$fg_bold[yellow]%}➜ %{$reset_color%} ' | |
| # git | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} %{$fg_no_bold[yellow]%}%B" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%} %{$reset_color%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN=" " | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗" | |
| ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}✈" |
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
| package ca.jbrains.pos.test; | |
| import static org.junit.Assert.*; | |
| import java.util.*; | |
| import org.junit.*; | |
| public class SellOneItemTest { | |
| public static class Sale { |
NewerOlder