Skip to content

Instantly share code, notes, and snippets.

import type { Kysely } from "kysely";
import type { Adapter } from "next-auth/adapters";
import type { DB } from "kysely-codegen";
/**
* mostly copy pasted from the unmerged kysely adapter PR to next-auth repo
*
* assumes Account, User and Session ids are Int (not String).
*
@Andersgee
Andersgee / areastats.jl
Created July 18, 2022 19:12
generating some stats with dataframes
#=
trying out dataframes.
1. read .ldjson
2. store in dataframe
3. grab some reasonably simple stats from it
4. write to new .ldjson
=#
using JSON3;
using DataFrames
var CODE_VERSION = '6a5c8d06';/* The contents of this file will be copied unmodified to the top of your build. */
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./src/ability/jump.ts":
/*!*****************************!*\
!*** ./src/ability/jump.ts ***!
\*****************************/
@Andersgee
Andersgee / gist:258c59e4faf23a7949de3894a5af69c6
Created August 28, 2021 18:20
[greasemonkey script] A button for running the code-sync command on yare.io
// ==UserScript==
// @name YareCodeSyncButton
// @namespace https://yare.io/
// @include https://yare.io/d1/*
// @version 1
// ==/UserScript==
//Create a button
var input = document.createElement("input");
input.type="button";