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
| def self.npv_item_for_security_id sec_id, swap_prices | |
| npv_items = swap_prices.npv_items.select do |item| | |
| item['symbol'].eql?(sec_id) | |
| end | |
| return nil if npv_items.empty? | |
| npv_item = npv_items.last | |
| npv_item = npv_item.as_document unless npv_item.is_a?(Hash) |
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
| require('vertx') | |
| include Vertx | |
| @server = HttpServer.new | |
| @server.request_handler do | req | | |
| premonition = [ |
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
| require 'iron_mq' | |
| $stdout.sync = true | |
| def write_msg msg | |
| puts "*"*10 | |
| puts msg | |
| puts "*"*10 |
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
| #include <boost/test/minimal.hpp> | |
| #include "state_machine.hpp" | |
| #include <vector> | |
| // define states | |
| enum states_t { | |
| init, | |
| state_one, | |
| state_two, |
NewerOlder