vim ./.oh-my-zsh/themes/robbyrussell.zsh-theme
Replace PROMPT with:
PROMPT='%{$fg_bold[white]%}%M ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
| module Bla | |
| HTTP_OK = 200 | |
| HTTP_BAD_REQUEST = 400 | |
| HTTP_UNAUTHORIZED = 401 | |
| HTTP_FORBIDDEN = 403 | |
| HTTP_NOT_FOUND = 404 | |
| HTTP_INTERNAL_SERVER_ERROR = 500 | |
| end | |
| puts Bla::HTTP_OK |
vim ./.oh-my-zsh/themes/robbyrussell.zsh-theme
Replace PROMPT with:
PROMPT='%{$fg_bold[white]%}%M ${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
| class Plan | |
| def price | |
| 100 | |
| end | |
| end | |
| module SharedFunctions | |
| private def load_or_save_origin | |
| if origin.present? | |
| # gid is the property (type string) defined in all decorators. This property will hold global id of the object. |
| class Plan | |
| def price | |
| 100 | |
| end | |
| end | |
| class Promo | |
| def initialize(origin, code) | |
| @origin = origin | |
| @code = code |
| class Car | |
| attr_reader :num | |
| attr_reader :seats | |
| def initialize(num, seats) | |
| @num = num | |
| @seats = seats | |
| end | |
| end |
| /* | |
| How to install in VSCode: | |
| 1. "Ctrl ," to open User Settings | |
| 2. Paste color customization (everything below comment, you may also want to keep the comment) | |
| 3. Save! | |
| { | |
| "window.zoomLevel": 1, |
| int ledPin = 11; | |
| void setup() { | |
| pinMode(ledPin, OUTPUT); | |
| } | |
| void dash() { | |
| digitalWrite(ledPin, HIGH); | |
| delay(1000); | |
| digitalWrite(ledPin, LOW); |
| # Right way to install Chocolatey - always specify version to avoid breaking changes! | |
| $ChocoInstallPath = "$env:SystemDrive\ProgramData\Chocolatey\bin" | |
| $env:chocolateyVersion = '0.9.10.3' # <-- HERE | |
| if (!(Test-Path $ChocoInstallPath)) { | |
| iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
| } |