-
Notifications
You must be signed in to change notification settings - Fork 29
/
config.rb
57 lines (51 loc) · 1.76 KB
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Hours shown on the day schedule. You can leave nils if you want a blank to write in.
HOUR_LABELS = [nil, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, nil, nil]
HOUR_COUNT = HOUR_LABELS.length
COLUMN_COUNT = 4
LIGHT_COLOR = 'AAAAAA'
MEDIUM_COLOR = '888888'
DARK_COLOR = '000000'
OSX_FONT_PATH = "/System/Library/Fonts/Supplemental/Futura.ttc"
FONTS = {
'Futura' => {
normal: { file: OSX_FONT_PATH, font: 'Futura Medium' },
italic: { file: OSX_FONT_PATH, font: 'Futura Medium Italic' },
bold: { file: OSX_FONT_PATH, font: 'Futura Condensed ExtraBold' },
condensed: { file: OSX_FONT_PATH, font: 'Futura Condensed Medium' },
}
}
PAGE_SIZE = 'LETTER' # Could also do 'A4'
# Order is top, right, bottom, left
LEFT_PAGE_MARGINS = [36, 72, 36, 36]
RIGHT_PAGE_MARGINS = [36, 36, 36, 72]
# Adjust the quarters to a fiscal year, 1 for Jan, 2 for Feb, etc.
Q1_START_MONTH = 2
QUARTERS_BY_MONTH = (1..12).map { |month| (month / 3.0).ceil }.rotate(1 - Q1_START_MONTH).unshift(nil)
# Adjust the start of semesters
SUMMER_SEMESTER_START = 4 # April
WINTER_SEMESTER_START = 10 # October
# Use these if you have sprints of a weekly interval
SPRINT_EPOCH = Date.parse('2023-01-04')
SPRINT_LENGTH = 14
# Names by day of week, 0 is Sunday.
OOOS_BY_WDAY = [nil, nil, ['Juan'], ['Kelly'], nil, ['Alex', 'Edna'], nil]
# Repeating tasks by day of week, 0 is Sunday. Nested index is the row.
TASKS_BY_WDAY = [
{ 0 => 'Plan meals' },
{ 0 => 'Update standup notes' },
{ 0 => 'Update standup notes' },
{ 0 => 'Update standup notes' },
{ 0 => 'Update standup notes' },
{ 0 => 'Update standup notes' },
{ 0 => 'Plan next week' },
]
# Repeating Appointments by day of week, 0 is Sunday. Nested index is a value in HOUR_LABELS.
APPOINTMENTS_BY_WDAY = [
{},
{},
{},
{},
{},
{},
{},
]