Skip to content

Instantly share code, notes, and snippets.

View ruslander's full-sized avatar

Ruslan Rusu ruslander

View GitHub Profile
/*****************************************************************************
* 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
@ruslander
ruslander / IisExpressJob.ps1
Last active December 21, 2015 17:06 — forked from drmohundro/IisExpressJob.ps1
PowerShell functions to start/stop IIS Express in the specified directory as a background job
function WebIt($name, $pathToSource, $port) {
Start-Job -Name $name -Arg $pathToSource, $port -ScriptBlock {
param ($pathToSource, $p)
& 'C:\Program Files (x86)\IIS Express\iisexpress.exe' /port:$p /path:$pathToSource
}
}
WebIt "adm" "..\Management.Web" 5000
@ruslander
ruslander / Chat.java
Created April 3, 2017 17:01 — forked from yuvadm/Chat.java
JGroups TCP over WAN
import org.jgroups.JChannel;
import org.jgroups.Message;
import org.jgroups.ReceiverAdapter;
import org.jgroups.View;
import org.jgroups.util.Util;
public class Chat {
public static void main(String[] args) throws Exception {
JChannel ch = new JChannel("tcp.xml");
@ruslander
ruslander / Makefile
Created January 19, 2020 02:04
Makefile for Go Projects
GOPATH=$(shell pwd)/vendor:$(shell pwd)
GOBIN=$(shell pwd)/bin
GOFILES=$(wildcard *.go)
GONAME=$(shell basename "$(PWD)")
PID=/tmp/go-$(GONAME).pid
build:
@echo "Building $(GOFILES) to ./bin"
@GOPATH=$(GOPATH) GOBIN=$(GOBIN) go build -o bin/$(GONAME) $(GOFILES)