Skip to content

Instantly share code, notes, and snippets.

@lmaccherone
lmaccherone / divvyResources.coffee
Created January 25, 2012 02:34
Using ChartTime to divvy up Release resources across Iterations
{ChartTimeRange, ChartTime, ChartTimeIterator} = require('../src/ChartTime')
# Setting up the context
workDays = 'Monday, Tuesday, Wednesday, Thursday, Friday'
holidays = [
{month: 1, day: 1},
{month: 7, day: 4},
{month: 12, day: 25},
{year: 2012, month: 5, day: 28}
# Fill in the rest for your company if you want holidays taken into account