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
| // ---- | |
| // Sass (v3.4.7) | |
| // Compass (v1.0.1) | |
| // ---- | |
| //colors | |
| $color_outer_space_approx: #24353c; | |
| $white_80: rgba(255, 255, 255, 0.80); | |
| $white_40: rgba(255,255,255,0.4); | |
| $black_35: rgba(0,0,0,0.35); |
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
| import com.lmax.disruptor.dsl.Disruptor | |
| import java.util.concurrent.Executors | |
| import com.lmax.disruptor._ | |
| case class ValueEvent(var value: Long) | |
| case class ValueEventTranslator(value: Long) extends EventTranslator[ValueEvent] { | |
| def translateTo(event: ValueEvent, sequence: Long) = { | |
| event.value = value | |
| event |
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
| alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
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
| void DemoVasicekDynamics() | |
| { | |
| Real b=0.1; //long term rate | |
| Real lambda = 0.0; //risk parameter | |
| Real r0=0.05; //spot interest rate | |
| Real a=0.1; //speed of mean reversion | |
| Real sigma=0.01; //vol. parameter | |
| std::vector<std::vector<double>> xAxisVecs,yAxisVecs; | |
| std::vector<std::string> curveTitleVec; |
NewerOlder