-
Notifications
You must be signed in to change notification settings - Fork 32
Update CS3217 script for 2018 #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
👍 |
|
I'm happy and sad at the same time that the scripts still need to be maintained. Thanks! |
|
Wow didn't get flamed for the great big hack |
|
Didn't really review because I can't test it and if it works, it works. I wouldn't import a time library just for this anyway. The way you did it was fine in the context of a one-off script. #movefast |
yangshun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed
| day: 'SUNDAY', | ||
| start_time: '1400', | ||
| end_time: '1600' | ||
| start_time: times['start_time'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
times.start_time
| start_time: '1400', | ||
| end_time: '1600' | ||
| start_time: times['start_time'], | ||
| end_time: times['end_time'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
times.end_time
| if (week == 7) continue; | ||
| // Grading claims | ||
| for (var ps = 0; ps < 5; ps++) { | ||
| var ps_hours = ps_students[ps] * ps_rates[ps]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vars are function scope, so avoid using vars in a for-loop. Use let or wrap the body in an IIFE.
|
🌚 |
| start_time: '1200', | ||
| end_time: '1400' | ||
| }); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/nit these spaces lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tsk @louietyj never configure editor to trim spaces on save
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notepad 😒
No description provided.