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
| # tmux plugins | |
| set -g @plugin 'tmux-plugins/tpm' | |
| set -g @plugin 'tmux-plugins/tmux-sensible' | |
| set -g @plugin 'tmux-plugins/tmux-resurrect' | |
| # vim mode switching delay issue (http://superuser.com/a/252717/65504) | |
| set -s escape-time 10 | |
| set -g mouse on |
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
| Index: src/foam/nanos/crunch/ui/UCJView.js | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| diff --git a/src/foam/nanos/crunch/ui/UCJView.js b/src/foam/nanos/crunch/ui/UCJView.js | |
| --- a/src/foam/nanos/crunch/ui/UCJView.js (revision 3cd0783ae2b1bb4649d671479f07aea9112a9e66) | |
| +++ b/src/foam/nanos/crunch/ui/UCJView.js (revision 7204d43446b32459e7d62a4c27a61d0bc24bf868) | |
| @@ -122,7 +122,8 @@ | |
| controllerMode: |
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
| [{ | |
| "Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup", | |
| "Country": "Afghanistan", | |
| "ISO": "AF", | |
| "Format": "NNNN", | |
| "Regex": "^\\d{4}$" | |
| }, { | |
| "Note": "With Finland, first two numbers are 22.", | |
| "Country": "Åland Islands", | |
| "ISO": "AX", |
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
| Start server - development branch | |
| > ./build.sh -wcdj -Jbr,treviso | |
| Configure credentials | |
| - services | |
| - dowJones | |
| - secureFact | |
| - IDM | |
| - Kotak | |
| - afexCredentials |
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
| { | |
| "HttpStatusCode":200, | |
| "Accounts":[ | |
| { | |
| "Transactions":[ | |
| { | |
| "Date":"2018-11-20", | |
| "Code":null, | |
| "Description":"ABC", | |
| "Debit":50.00, |
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
| # Base | |
| class Base | |
| attr_reader :message | |
| def initialize(message) | |
| @message = message | |
| end | |
| def valid? | |
| !message.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
| class AliceBot < Visitor | |
| def respond_to_question | |
| "Yeah, I'm listening." | |
| end | |
| def respond_to_yell | |
| '🤐' | |
| end | |
| def respond_to_silence |
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 BobBot < Visitor | |
| def respond_to_question | |
| 'Sure.' | |
| end | |
| def respond_to_yell | |
| 'Woah, chill out!' | |
| end | |
| def respond_to_silence |
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 Visitor | |
| METHODS_TOBE_IMPLEMENTED = %i( | |
| respond_to_question respond_to_yell respond_to_silence respond_to_anything) | |
| attr_reader :message_types | |
| def initialize(*message_types) | |
| @message_types = message_types | |
| 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
| class BobBot | |
| def respond(message) | |
| [Question, Yell, Silence, Anything].each do |type| | |
| return type.respond if type.valid?(message) | |
| end | |
| end | |
| end |
NewerOlder