Skip to content

Instantly share code, notes, and snippets.

View ryoppippi's full-sized avatar
🪀
yoyo

ryoppippi ryoppippi

🪀
yoyo
View GitHub Profile
@ryoppippi
ryoppippi / router-gen.ts
Created September 25, 2023 13:11 — forked from HugeLetters/router-gen.ts
SvelteKIt type-safe router
import { writeFile } from 'fs/promises';
import { glob } from 'glob';
import { format } from 'prettier';
import { watch } from 'chokidar';
export default async function generateRoutes() {
const routes = await glob('./src/routes/**/+page.svelte', { withFileTypes: true }).then((files) =>
files
.filter((file) => file.isFile())
.sort((a, b) => (a.path > b.path ? 1 : -1))
#include QMK_KEYBOARD_H
#ifdef PROTOCOL_LUFA
#include "lufa.h"
#include "split_util.h"
#endif
#ifdef SSD1306OLED
#include "ssd1306.h"
#endif