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
MIC,COUNTRY,ISO COUNTRY CODE (ISO 3166),OPERATING MIC,O/S,NAME-INSTITUTION DESCRIPTION,ACRONYM,CITY,STATUS DATE | |
360T,GERMANY,DE,360T,O,360T,,FRANKFURT,SEPTEMBER 2007 | |
AATS,UNITED STATES OF AMERICA,US,AATS,O,ASSENT ATS,,JERSEY CITY,OCTOBER 2011 | |
ACEX,INDIA,IN,ACEX,O,ACE DERIVATIVES & COMMODITY EXCHANGE LTD,,MUMBAI,APRIL 2011 | |
AFET,THAILAND,TH,AFET,O,AGRICULTURAL FUTURES EXCHANGE OF THAILAND,,BANGKOK,JANUARY 2008 | |
AIXE,SWITZERLAND,CH,AIXE,O,AIXECUTE,,BERNE,OCTOBER 2013 | |
ALDP,UNITED STATES OF AMERICA,US,XNYS,S,NYSE ALTERNEXT DARK,AMEXDARK,NEW YORK,MAY 2011 | |
ALTX,SOUTH AFRICA,ZA,XJSE,S,JSE ALTERNATE EXCHANGE,ALTX,JOHANNESBURG,APRIL 2015 | |
ALXA,THE NETHERLANDS,NL,XAMS,S,EURONEXT - ALTERNEXT AMSTERDAM,,AMSTERDAM,MAY 2015 | |
ALXB,BELGIUM,BE,XBRU,S,EURONEXT - ALTERNEXT BRUSSELS,,BRUSSELS,APRIL 2015 |
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
" Fix syntax file | |
" Language: FIX | |
" Author: elvin.chua | |
" Created on: 16 June 2015 | |
" | |
if exists("b:current_syntax") | |
finish | |
endif | |
let b:current_syntax = "fix" |
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 Prelude hiding (lookup) | |
import Data.Map (Map) | |
import qualified Data.Map as Map | |
import System.IO | |
import Data.List | |
import Data.List.Split | |
msgType = Map.fromList [("D", "NEW ORDER"), ("G", "MODIFY"), ("F", "CANCEL"), ("8", "EXECUTION"), ("9", "CANCEL"), ("i", "MASS QUOTE"), ("r", "QUOTE REQUEST"), ("b", "QUOTE ACK"), ("c", "SECURITY DEFINITION")] | |
ordStatus = Map.fromList [("0", "NEW ORDER ACK"), ("1", "PARTIAL FILL"), ("2", "COMPLETE FILL"), ("4", "CANCEL ACK"), ("5", "MODIFY ACK"), ("8", "ORDER REJECTED"), ("C", "EXPIRED"), ("H", "TRADE CANCEL")] | |
ordType = Map.fromList [("1", "MKT"), ("2", "LMT"), ("3", "STP"), ("4", "STP-LMT"), ("K", "MKT-LMT")] |
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
hanoi 0 _ _ _ = [] | |
hanoi n a b c = hanoi (n-1) a c b ++ [(a,b)] ++ hanoi (n-1) c b a | |
han 0 _ _ _ = [] | |
han n a b c = han (n-1) a c b ++ [(a,c)] ++ han (n-1) b a c |
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
palindrome :: (Eq a) => [a]->Bool | |
palindrome (xs) | |
| xs == reverse(xs) = True | |
| otherwise = False |
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
#!/usr/bin/env python | |
# iterative | |
string = "testing" | |
newstring = "" | |
for s in string[:]: | |
newstring = s + newstring | |
print newstring | |
# recursive |
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
reverse' :: [a] -> [a] | |
reverse' [] = [] | |
reverse' [x] = [x] | |
reverse' (x:xs) = reverse'(xs) ++ [x] |
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
// C | |
#include <stdio.h> | |
int main(void){ | |
char string[] = "elvino"; | |
int len = strlen(string); | |
int mid = len / 2; | |
len--; | |
int i = 0; | |
char tmp; | |
while(i!=mid){ |
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
net.createServer( | |
function(sock) { | |
console.log("Received connection from " + sock.remoteAddress + ':' + sock.remotePort); | |
sock.on('data', function(data){ | |
string = data.toString('ascii') | |
setTimeout(function(){ | |
sock.write(data.slice(0, 20)); | |
}, 3000); | |
}); | |
sock.on('close', function(data){ |
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
#!/usr/bin/env python | |
for x in range(0, 100): | |
if x%3==0 and x%5==0: | |
print 'FizzBuzz' | |
elif x%3==0: | |
print 'Fizz' | |
elif x%5==0: | |
print 'Buzz' | |
else: | |
print x |