Online Learning and Decision Making for Resource Allocation