Skip to content

Instantly share code, notes, and snippets.

View Makiah's full-sized avatar

Makiah Bennett Makiah

  • Northeastern University
  • MA, USA
View GitHub Profile
@Makiah
Makiah / CreateMonthCalendar.scpt
Last active December 3, 2024 11:44
Used to generate school calendars for Apple Calendars (iCal whatever) for NHS schedules.
// Create the application.
var app = Application.currentApplication()
// Ensure that we have the Calendar application available for use.
app.includeStandardAdditions = true
// This function is used when we need to prompt the user for something.
function askUser(prompt) {
var response = app.displayDialog(prompt, {
defaultAnswer: "",
@SamusAranX
SamusAranX / BARS format (to the best of my knowledge).txt
Last active March 24, 2025 06:10
BARS extractor (with improvised documentation)
IMPORTANT: All offsets are taken from KorokPot.bars! Actual offsets of dynamic-length data may vary in other files, but based
on the information here, it shouldn't be hard to find the real offsets. When in doubt, look at the code.
╒══════════╤══════════╤═════════╤════════════════════╤═══════════╤═════════════════════════╤════════════════════════════════════════════════════════════════════════╕
│ Offset │ -> Dec │ Size │ -> Dec │ Type │ Name │ Information │
╞══════════╪══════════╪═════════╪════════════════════╪═══════════╪═════════════════════════╪════════════════════════════════════════════════════════════════════════╡
│ 0x0 │ 0 │ 0x4 │ 4 │ │ BARS header │ Indicates that this is, in fact, a BARS file │
├──────────┼──────────┼─────────┼────────────────────┼───────────┼─────────────────────────┼────────────────────────────────────