Skip to content

Instantly share code, notes, and snippets.

View brochington's full-sized avatar

Broch Stilley brochington

View GitHub Profile
@brochington
brochington / file-concat.html
Created April 20, 2025 17:53
website that concats files together using a UI. Output is suitable for providing to AI.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>File Concatenator</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/7.21.2/babel.min.js"></script>
@brochington
brochington / duckdb-arrow-test.html
Created April 1, 2025 21:58
DuckDB Arrow ingestion test
<!DOCTYPE html>
<html>
<head>
<title>DuckDB-WASM Arrow Ingestion</title>
<style>
body {
font-family: sans-serif;
}
@brochington
brochington / ColorSchemeSwitch.tsx
Created November 12, 2024 16:32
Color Scheme switch React Component (Mantin, Spring, Tabler)
import { useEffect, useState } from 'react';
import {
useMantineColorScheme,
ActionIcon,
Transition,
rem,
} from '@mantine/core';
import { IconSun, IconMoon } from '@tabler/icons-react';
import { useSpring, animated } from 'react-spring';
@brochington
brochington / lseg-1.js
Last active June 2, 2023 19:37
lseg-1
const SCHEMA = {
DR_NO: "integer",
"Date Rptd": "string",
"DATE OCC": "string",
"TIME OCC": "integer",
AREA: "integer",
"AREA NAME": "string",
"Rpt Dist No": "integer",
"Part 1-2": "integer",
"Crm Cd": "integer",
// models.rs
use diesel::sql_types::{Uuid};
#[derive(Queryable)]
pub struct Markup {
pub id: Uuid,
}
// show_markups.rs
extern crate diesel;