You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
And if you're a student like me, you can get a free IntelliJ Ultimate license with your school email here.
For NetBeans, BlueJ, Notepad++ Users:
IDE is not just a text editor.
... and don't say "I can use javac."
For Visual Studio Users:
Have you tried turning it off and on again?
Others:
Stop telling me "I use mspaint to code Java."
Veracross SDK:
// Import packages first:// import cc.moecraft.school.veracross.*;// import cc.moecraft.school.veracross.pojo.*;// Initialize object with base url, username and password.VeracrossReaderreader = newVeracrossReader("https://portals-app.veracross.com/schoolname", "username", "password");
// Initialize browser driver with the path to chrome driver.// The boolean means use headless mode or not.// true = Headless, false = Not headless.// I recommend false when debugging and true when deploying.// Because if it's headless, you can't see the browser window.reader.initialize("./GPACalc.Core/drivers/chromedriver.exe", true);
// Login to Veracrossreader.login();
// Get course listList<VeracrossCourse> courses = reader.getCourses();
log(courses);
// Get assignments of the course at index 1 of the list.VeracrossAssignmentsassignments = reader.getAssignments(courses.get(1).getAssignmentsId());
log(assignments);
// Get messages starting at index 0.List<VeracrossMessage> messages = reader.getMessages(0);
log(messages);
// Get calendar events from 5 days ago to 5 days later.List<VeracrossCalendarEvent> events = reader.getEvents(-5, 5);
log(events);
// Get calendar events from a specific date to a specific date.events = reader.getEvents(newDate(), newDate());
log(events);
// Kill browser task.reader.destroy();
GPA Calculating:
1. Write a Grading Profile:
# A grading profile shows how a school weight their levels.# This example is for a weighted high school.# The level of courses.# Key word can be anything.# Grade weights are how much credit do you get for each grade.Levels:
AdvancedPlacement:
Alias:
- "AP"GradeWeight:
A+: 5A: 4.75A-: 4.5B+: 4.25B: 4B-: 3.75C+: 3.5C: 3.25C-: 3D: 2F: 0Honors:
Alias:
- "H"GradeWeight:
A+: 4.75A: 4.5A-: 4.25B+: 4B: 3.75B-: 3.5C+: 3.25C: 3C-: 2.75D: 1.75F: 0Accelerated:
Alias:
- "Acc"
- "A"GradeWeight:
A+: 4.5A: 4.25A-: 4B+: 3.75B: 3.5B-: 3.25C+: 3C: 2.75C-: 2.5D: 1.5F: 0CollegePrep:
Alias:
- "CP"GradeWeight:
A+: 4.25A: 4A-: 3.75B+: 3.5B: 3.25B-: 3C+: 2.75C: 2.5C-: 2.25D: 1.25F: 0# The ranges of the grade.# The value represents the minimum amount in the range.# For example, A+ would be 97 - 100, so put 97 as the value.GradeRanges:
A+: 97A: 93A-: 90B+: 87B: 83B-: 80C+: 77C: 73C-: 71D: 70F: 0
2. Write a Student Profile:
# A student profile shows what courses a student chose.# This example is the courses I chose.# Basic information, doesn't affect calculating.Basics:
Name: "This is not important"Grade: 10Semester: 1# Courses a student is taking.Subjects:
English:
Name: "English 2 A"Level: "A"Credits: 1Algebra:
Name: "Algebra 2 H"Level: "H"Credits: 1Chemistry:
Name: "Chemistry 1 H"Level: "H"Credits: 1History:
Name: "Modern World History CP"Level: "CP"Credits: 1Religion:
Name: "Early Church CP"Level: "CP"Credits: 0.5ComputerScience:
Name: "AP Computer Science A"Level: "AP"Credits: 1