data config type for schedules idk what to call it
  • TypeScript 95%
  • JavaScript 3.2%
  • PEG.js 1.7%
  • Shell 0.1%
Find a file
2022-11-26 19:16:48 -08:00
.devcontainer run yarn format 2022-11-26 18:37:28 -08:00
.github/workflows Lint action 2022-11-09 12:38:10 -08:00
.husky lets try this 2022-11-03 08:56:23 -07:00
.vscode run yarn format 2022-11-26 18:37:28 -08:00
.yarn dont use beta yarn 2022-11-03 08:15:32 -07:00
cli run yarn format 2022-11-26 18:37:28 -08:00
examples Cleaned up main.ex.scs a bit 2022-11-26 18:51:52 -08:00
pplugins/prettier-plugin-scs run yarn format 2022-11-26 18:37:28 -08:00
src oops 2022-11-26 19:16:48 -08:00
tests run yarn format 2022-11-26 18:37:28 -08:00
.eslintignore ok 2022-11-03 08:50:24 -07:00
.eslintrc.js linting and formatting! 2022-11-03 08:40:18 -07:00
.gitignore finish CLI 2022-11-04 08:31:44 -07:00
.gitpod.yml run yarn format 2022-11-26 18:37:28 -08:00
.npmignore added prettier 2022-11-02 21:05:29 -07:00
.npmrc pub to npm 2022-11-21 07:08:24 -08:00
.parcelrc peggy 2022-10-31 11:07:36 -07:00
.prettierignore ok 2022-11-03 08:50:24 -07:00
.prettierrc run yarn format 2022-11-26 18:37:28 -08:00
.swcrc run yarn format 2022-11-26 18:37:28 -08:00
.yarnrc.yml run yarn format 2022-11-26 18:37:28 -08:00
jest.config.js added prettier 2022-11-02 21:05:29 -07:00
LICENSE Initial commit 2022-10-26 08:37:01 -07:00
package.json oops 2022-11-26 19:16:48 -08:00
README.md run yarn format 2022-11-26 18:37:28 -08:00
tsconfig.json run yarn format 2022-11-26 18:37:28 -08:00
yarn.lock pub to npm 2022-11-21 07:08:24 -08:00

schedule-script

"Schedule script is a simple script to schedule a script to run at a specific time." -GitHub CoPilot

Schedule Script is a scripting language developed for Schedule Personalizer. It was created because why the heck not and also because I did not want to write the config in JSON or TypeScript. Something custom would make some things way easier to work with.

That aside. HFGL.

example react thingy

please improve


export function useSchedule(input: string, date: Date, extra: any) {
    const parsed: SCS = useMemo(() => {
        return new SCS(input)
    }. [input])

    const sch = useMemo(() => {
        return parsed.scheduleFor(date, extra)
    }, [parsed,date,extra])

    const raw = useMemo(() => {
        return parsed.exec({ displayDate: date, ...extra })
    }, [parsed,date,extra])
    return {sch, raw /* we should pull things out of the raw, like lunch info and config, not just returning it as is */}
}