Skip to content

Instantly share code, notes, and snippets.

View Avi-E-Koenig's full-sized avatar
🎯
Focusing

Avi E. Koenig Avi-E-Koenig

🎯
Focusing
View GitHub Profile
@Avi-E-Koenig
Avi-E-Koenig / abyss-survey.html
Last active July 11, 2026 11:01
Abyssal Basing Survey — Oijamon Sector (EVE Online): 28 large, quiet 0.6–0.7 high-sec systems ranked by 24h activity + gate distance
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><style>:root{color-scheme:light}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#faf9f5;color:#141413}img{max-width:100%}</style></head><body>
<title>Abyssal Basing Survey — Oijamon Sector</title>
<style>
:root {
/* Light theme — "printed star atlas / nav chart on the light table" */
--ground: #e9ebf3;
--panel: #ffffff;
--panel-2: #f4f5fb;
@Avi-E-Koenig
Avi-E-Koenig / SFM_productive_bees_handler.sfm
Last active March 30, 2026 22:32
Super Factory manager mod minecraft All the mods 10 handler for the comb processing
NAME "CENTRIFUGE SUPPLY"
EVERY 20 TICKS DO
INPUT fe:: FROM power BOTTOM SIDE
OUTPUT fe:: TO heated_centrifuge
INPUT productivebees:configurable_* EXCEPT minecraft:honeycomb_block FROM storage_controller
OUTPUT TO heated_centrifuge
FORGET
@Avi-E-Koenig
Avi-E-Koenig / saveAttachmentsFromSender.gs
Last active November 17, 2025 15:24
google get all attachments
function saveAttachmentsFromSender() {
const SENDER = "******";
const FOLDER_ID = "*******";
const folder = DriveApp.getFolderById(FOLDER_ID);
const threads = GmailApp.search(`from:${SENDER} has:attachment`);
let savedCount = 0;
threads.forEach(thread => {
const messages = thread.getMessages();
{
"currencies": {
"AED": {
"code": "AED",
"number": "784",
"digits": 2,
"currency": "United Arab Emirates dirham",
"countries": [
"United Arab Emirates"
],
@Avi-E-Koenig
Avi-E-Koenig / useLocalStorage.ts
Created October 30, 2025 21:04
NextJS localstorage hook
import { useCallback, useEffect, useRef, useState } from 'react'
import loggerClient from '@/lib/logger-client'
const useLocalStorage = <T>(
key: string,
defaultValue: T,
): [T, (value: T | ((prev: T) => T)) => void] => {
const [value, setValue] = useState<T>(defaultValue)
const [isHydrated, setIsHydrated] = useState(false)
@Avi-E-Koenig
Avi-E-Koenig / MarkdownDisplay.vue
Last active August 29, 2025 18:33
MarkdownDisplay.vue
<!-- eslint-disable vue/no-v-html -->
<template>
<div
ref="root"
:class="['markdown-display', containerClass]"
v-bind="$attrs"
v-html="safeHtml"
/>
</template>
import Dexie from "dexie";
import helpers from "./helpers";
// Constants
const CACHE_CONSTANTS = {
DB_NAME: "ProgressCacheDB",
// TTL Settings
HISTORICAL_TTL: 7 * 24 * 60 * 60 * 1000, // 7 days
TODAY_TTL: 2 * 60 * 60 * 1000, // 2 hours
import { dirname } from 'path'
import { fileURLToPath } from 'url'
import { FlatCompat } from '@eslint/eslintrc'
import prettier from 'eslint-plugin-prettier'
import jsxA11y from 'eslint-plugin-jsx-a11y'
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
const compat = new FlatCompat({ baseDirectory: __dirname })
-- =========================================
-- Create a read-only SQL Server login/user for all databases
-- Usage: Set @username and @password as needed
-- =========================================
-- Step 1: Declare variables for username and password
DECLARE @username NVARCHAR(128) = N'USERNAME';
DECLARE @password NVARCHAR(128) = N'PASSWORD';
-- Step 2: Create the login at the server level (if not already created)
'use client';
import React, { createContext, JSX, useCallback, useContext, useEffect, useState } from "react";
import { useLocalStorage } from "@/hooks/useLocalStorage";
import { THEME, LOCALE } from "@/theme";
// import type { ThemeMode, LocaleType } from '@/theme';
interface ApplicationConfigsProps {
children: JSX.Element;
}