Skip to content

Instantly share code, notes, and snippets.

View w0rd-driven's full-sized avatar
🌴
Chill

Jeremy Brayton w0rd-driven

🌴
Chill
View GitHub Profile
@w0rd-driven
w0rd-driven / fine-tuning.md
Created March 1, 2025 18:35 — forked from hamelsmu/fine-tuning.md
From OpenAI Deep Research, in response to https://x.com/simonw/status/1895301139819860202

Success Stories of Fine-Tuning LLMs Across Industries

Below is a summary of diverse use cases where companies fine-tuned large language models (LLMs) to solve business challenges that previous methods struggled with. Each case highlights the challenge, the fine-tuning approach, and the key results achieved.

Summary of Fine-Tuning Success Cases

Use Case Key Results Source Link
Wealth Management Assistant (Finance) 98% advisor adoption; document access up from 20% to 80% OpenAI & Morgan Stanley
Insurance Claims AI (Insurance) 30% accuracy improvement vs. generic LLMs [Insurance News (EXL)](https://www.insurancenews.c
@w0rd-driven
w0rd-driven / fun-with-frames.livemd
Created February 23, 2025 14:57 — forked from elepedus/fun-with-frames.livemd
Howto use nested Kino frames to send bulk updates to sub-groups of connected clients

Efficient Group Updates with Nested Kino Frames

Mix.install([
  {:kino, "~> 0.14.2"},
  {:kino_user_presence, "~> 0.1.2"}
])
@w0rd-driven
w0rd-driven / service-workers.md
Created January 26, 2025 21:45 — forked from Rich-Harris/service-workers.md
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

#include <stdio.h>
#include <windows.h>
#pragma comment(lib, "winmm.lib")
void Nothing(WORD wKey)
{
}
void PrintKey(WORD wKey)
@w0rd-driven
w0rd-driven / wait_for.ex
Created December 26, 2024 21:22 — forked from thmsmlr/wait_for.ex
ExUnit helper function to wait up to a timeout to determine whether a set of assertions completes. Perfect for testing async code
@default_timeout 100
@check_interval 10
# Test Helpers
defp wait_for(fun, timeout \\ @default_timeout) do
start_time = System.monotonic_time(:millisecond)
ref = make_ref()
try do
@w0rd-driven
w0rd-driven / useInactivityTimeout.tsx
Created June 22, 2024 06:10 — forked from cheskoxd/useInactivityTimeout.tsx
Small hook to check if the user has been inactive for x hours it will reload the page
import { useEffect, useRef } from 'react';
const useInactivityTimeout = (timeoutInHours) => {
const timeoutInMillis = timeoutInHours * 60 * 60 * 1000;
const timer = useRef(null);
useEffect(() => {
if (navigator.userActivation) {
if(navigator.userActivation.isActive){
if (timer.current) {
@w0rd-driven
w0rd-driven / operations_test.exs
Created May 11, 2024 22:44 — forked from doorgan/operations_test.exs
Testing module macros
defmodule OperationsTest do
use ExUnit.Case, async: true
def make_mod() do
String.to_atom("Elixir.Test#{System.unique_integer([:positive])}")
end
describe "operation/2" do
setup do
mod = make_mod()
@w0rd-driven
w0rd-driven / stream_distribute.ex
Created May 4, 2024 00:02 — forked from zachdaniel/stream_distribute.ex
A small demo to show how you might, given a stream, do a "fan out", processing different elements in separate streams. Powered by simple primitives like `Stream.resource` and `spawn_link`. Open in Livebook: https://livebook.dev/run?url=https%3A%2F%2Fgist.github.com%2Fzachdaniel%2Fd5ab06a9d2362fceeb6d27c37b206e28
<!-- livebook:{"persist_outputs":true} -->
# Distribute
## Section
A small toy to show how you might, given a stream, do a "fan out", processing different elements in separate streams. Powered by simple primitives like `Stream.resource` and `spawn_link`.
```elixir
defmodule Distribute do
@w0rd-driven
w0rd-driven / shopify-cdn-spaces.js
Created June 28, 2023 19:28
K6 S3 test for Digital Ocean Spaces
import exec from 'k6/execution';
import http from 'k6/http';
import { AWSError, AWSConfig, SignatureV4, S3Client } from 'https://jslib.k6.io/aws/0.8.0/aws.js'
const bucketName = 'orange-cdn-west';
export const options = {
ext: {
loadimpact: {
@w0rd-driven
w0rd-driven / resume.json
Last active February 24, 2023 22:08
resume.json
{
"basics": {
"name": "Jeremy Brayton",
"label": "Full Stack Web Developer",
"picture": "//www.gravatar.com/avatar/29f6930d58e253dcdd01e1984cd902c0?s=100&r=pg&d=mm",
"phone": "",
"website": "http://braytonium.com",
"summary": "Over 12 years as a full stack web developer, including 10 years as a systems administrator, specializing in multiple web platforms and technologies. Regularly evaluating workflow efficiency to increase productivity and quality throughout the team. Deciphering new methodologies to discover their fit in a developer's tool belt. Solving complex problems using concise code with an emphasis on being readable and intuitive.",
"location": {
"city": "Woodstock",