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
rename 's/^static_world/web/' static_world* | |
osx | |
find . -type f -print0 | xargs -0 sed -i '' -e 's/static_world/web/g' |
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
-module(sc_store). | |
-export([ | |
init/0, | |
insert/2, | |
delete/1, | |
lookup/1 | |
]). | |
-define(TABLE_ID, ?MODULE). |
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
http://ejrh.wordpress.com/2011/04/21/price-time-matching-engine/ | |
http://www.quantcup.org/home/spec | |
https://gist.github.com/Jud/2855852 | |
Fix message viewer | |
http://fixparser.targetcompid.com/ | |
http://eprystupa.wordpress.com/2012/12/25/matching-engine-with-scala-and-cucumber-crossing-limit-orders/ | |
http://eprystupa.wordpress.com/2012/12/23/prototyping-a-matching-engine-with-scala-and-cucumber/ |
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
/***************************************************************************** | |
* QuantCup 1: Price-Time Matching Engine | |
* | |
* Submitted by: voyager | |
* | |
* Design Overview: | |
* In this implementation, the limit order book is represented using | |
* a flat linear array (pricePoints), indexed by the numeric price value. | |
* Each entry in this array corresponds to a specific price point and holds | |
* an instance of struct pricePoint. This data structure maintains a list |
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
% definition | |
1>rd(om, {nume, gen, virsta}). | |
om | |
% new instance | |
2> I = #om{nume=ru, gen=f, virsta=12}. | |
#om{nume = ru,gen = f,virsta = 12} | |
% new from template | |
3> P = I#om{nume=go}. |
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
%curl -s --user 'api:key-8av0ox9abrs2icvagny' \ | |
% https://api.mailgun.net/v2/bang.mailgun.org/messages \ | |
% -F from='Excited User <[email protected]>' \ | |
% -F [email protected] \ | |
% -F subject='Hello' \ | |
% -F text='Testing some Mailgun awesomness!' | |
-module(mailgun). | |
-compile(export_all). |
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
[TestFixture] | |
public abstract class Given_a_clean_environment | |
{ | |
[SetUp] | |
public void Setup() | |
{ | |
Init(); | |
Given(); | |
When(); | |
} |
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 Program | |
{ | |
private static readonly NetMQContext Context = NetMQContext.Create(); | |
static void Main(string[] args) | |
{ | |
Task.Factory.StartNew(() => | |
{ | |
using (var responder = Context.CreateResponseSocket()) | |
{ |
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 Program | |
{ | |
private static readonly NetMQContext Context = NetMQContext.Create(); | |
static void Main(string[] args) | |
{ | |
Task.Factory.StartNew(() => | |
{ | |
using (var cluster_A_Node1 = Context.CreateResponseSocket()) | |
{ |
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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
var p1 = new ChatServerProcess(); | |
p1.When(new NewMessage(){Text = "Hello"}); | |
p1.When(new NewMessage(){Text = "World"}); | |
var p2= new ChatServerProcess(); | |
p2.HydrateState(p1.HandOffState()); |