Skip to content

Instantly share code, notes, and snippets.

View chadulous's full-sized avatar

mavdotjs chadulous

View GitHub Profile
@chadulous
chadulous / funcquery.peggy
Created June 6, 2023 22:50
Function Query language
{
function buildQuery(table, modifiers) {
const query = modifiers.shift()
let amount;
if(query.name === 'select') {
amount = modifiers.shift();
checkview: if(options.viewsEnabled) {
if(!query.arguments?.view) {
query.arguments.view = 'default'
break checkview;
@chadulous
chadulous / nwpp.ts
Created May 14, 2022 00:49
Nightwind svelte patch
import { writable } from 'svelte/store'
import type { Writable } from 'svelte/types/runtime/store'
// this is not the most effecient way to do things and might cause some errors with typescript, i might make a full class
type Typewind = {
init(): string,
beforeTransition(): void,
toggle: () => void,
enable: (dark: boolean) => void,