Skip to content

Instantly share code, notes, and snippets.

View falconair's full-sized avatar

Shahbaz Chaudhary falconair

View GitHub Profile
if(FIXSession.isMsgType(fixmap, msgs["NewOrderSingle"])){
const orderid = fix_session.orderid_counter.next();
const ack = fix_session.create_msg(msgs['ExecutionReport']);
ack.set(fields['ExecID'],fix_session.execid_counter.next());
ack.set(fields['OrderID'],orderid);
ack.set(fields['ClOrdID'],fixmap.get(fields['ClOrdID']));
ack.set(fields['ExecType'], enums[fields['ExecType']]['NEW']);
ack.set(fields['ExecTransType'], enums[fields['ExecTransType']]['NEW']);
ack.set(fields['OrdStatus'], enums[fields['OrdStatus']]['NEW']);
ack.set(fields['Side'], fixmap.get(fields['Side']));
//DISCLAIMER: If something looks trivially wrong, it probably is. I'm a java developer, not yet a C++ dev.
//====================Schema====================
union FinalEventUnion
{
CharactersLoadedEvent,
SomeOtherEvent,
AnotherEvent,
...
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
'''
Tool to calculate warmup sets and which plates should be placed on the barbell
Author : Shahbaz Chaudhary
Contact: shahbazc gmail com
License: Do as you wish. Be safe while lifting, plenty of good advice on the internet.
'''
from itertools import *
@falconair
falconair / NetworkPerformanceComparison.java
Last active December 13, 2015 21:08
Java network performance comparison
package networkioshootout;
import static java.lang.System.out;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;