-
Notifications
You must be signed in to change notification settings - Fork 31
/
config.rb
76 lines (67 loc) · 2.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# 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
def one_on_ones_for sunday
# Weekly
sun = []
mon = []
tue = %w(Randy)
wed = %w(Jose Jason)
thr = %w(Amulya)
fri = []
sat = []
# Biweekly
cweek = sunday.cweek
wed << 'Jose Luis' if cweek % 2 == 0
wed << 'Mamatha' if cweek % 2 == 1
# Monthly
tue << 'Tyler' if cweek % 4 == 1
wed << 'Guerrero' if cweek % 4 == 3
[sun, mon, tue, wed, thr, fri, sat]
end
# 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 = [
{},
{},
{},
{},
{},
{},
{},
]