Skip to content

Instantly share code, notes, and snippets.

View tilkinsc's full-sized avatar
▶️
Working on Lua.NET

Cody Tilkins tilkinsc

▶️
Working on Lua.NET
View GitHub Profile
@tilkinsc
tilkinsc / build.bat
Created November 30, 2019 10:11
How to survive without makefile
@echo off
setlocal
REM Default env vars
IF NOT DEFINED debug set debug=0
IF NOT DEFINED debug_coverage set debug_coverage=0
IF NOT DEFINED GCC set GCC=gcc
IF NOT DEFINED AR set AR=ar
IF NOT DEFINED MAKE set MAKE=make
@tylergannon
tylergannon / $lib-server-mongoose-index.ts
Last active June 25, 2024 03:14
Avoiding OverwriteModelError while developing with mongoose and Svelte Kit (vite) dev server
/**
* @fileoverview Exports all models and mongoose instance
* @author @tylergannon
*
* Note the conditional creation of new models. This is to prevent
* conflict during development, between the HMR process repeating the
* same calls to mongoose.model(), which is not idempotent but throws
* an error if the model already exists.
*/
import type { Model } from 'mongoose';