Skip to content

Instantly share code, notes, and snippets.

Anirudh Chhangani anirudh-chhangani

View GitHub Profile
View main.go
package main
import (
"bytes"
"fmt"
"github.com/fatih/structs"
"github.com/olekukonko/tablewriter"
)
type printable struct {
View setup.sh
sudo apt update -y
sudo apt upgrade -y
sudo apt install htop curl python3 -y
sudo apt install python3-pip -y
curl https://sh.rustup.rs -sSf | sh
sudo apt install build-essential -y
sudo apt install gdb -y
sudo apt install cmake -y
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
@anirudh-chhangani
anirudh-chhangani / engine.c
Created Sep 21, 2018 — forked from druska/engine.c
Quant Cup 1's winning order book implementation
View engine.c
/*****************************************************************************
* 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
@anirudh-chhangani
anirudh-chhangani / gist:9989292
Last active Apr 1, 2018
Reformatted Tiny 2048.c
View gist:9989292
M[16],X=16,W,k;
main(){
T(system("stty cbreak"));
puts(W&1?"WIN":"LOSE");
}
K[]={2,3,1};
s(f,d,i,j,l,P){
You can’t perform that action at this time.