Skip to content

Instantly share code, notes, and snippets.

View beaugunderson's full-sized avatar
type type type

Beau Gunderson beaugunderson

type type type
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 9 columns, instead of 5 in line 7.
email,first_name,last_name,leadership_position,party,phone,state,website,bluesky
https://alsobrooks.senate.gov/,Angela D.,Alsobrooks,,D,(202) 224-4524,MD,https://alsobrooks.senate.gov/,
https://www.baldwin.senate.gov/feedback,Tammy,Baldwin,,D,(202) 224-5653,WI,https://www.baldwin.senate.gov/,
https://www.bennet.senate.gov/public/index.cfm/contact,Michael F.,Bennet,,D,(202) 224-5852,CO,https://www.bennet.senate.gov,https://bsky.app/profile/bennet.senate.gov
https://www.blumenthal.senate.gov/contact/,Richard,Blumenthal,,D,(202) 224-2823,CT,https://www.blumenthal.senate.gov,https://bsky.app/profile/blumenthal.senate.gov
https://www.bluntrochester.senate.gov/,Lisa,Blunt Rochester,,D,(202) 224-2441,DE,https://www.bluntrochester.senate.gov/,https://bsky.app/profile/bluntrochester.senate.gov
https://www.booker.senate.gov/?p=contact,Cory A.,Booker,,D,(202) 224-3224,NJ,https://www.booker.senate.gov,https://bsky.app/profile/booker.senate.gov
https://www.cantwell.senate.gov/public/index.cfm/email-maria,Maria,Cantwell,,D
#!/usr/bin/env uv run
from mlx_vlm import generate, load, utils
utils.MODEL_REMAPPING["llava"] = "pixtral"
model_path = "mistral-community/pixtral-12b"
template = """{%- if messages[0]["role"] == "system" %}
{%- set system_message = messages[0]["content"] %}
#!/usr/bin/env node
const Modbus = require('@glanglois/jsmodbus');
const net = require('net');
const wifiName = require('wifi-name');
// const BATTERY_ITEMS = [
// ['battery voltage', 259, 100],
// ['battery current', 261, 10],
// ];
#!/usr/bin/env python
import os
import re
import sys
from telnetlib import Telnet
from env_tools import apply_env
#!/usr/bin/env node
const assert = require('assert');
function fieldNumberToLetter(number) {
return String.fromCharCode(number + 65);
}
function squareToNeighbors(square) {
square = square.toUpperCase();
#!/usr/bin/env python3 -u
import signal
class Runner:
def __init__(self):
self.stop = False
self.previous_handler = signal.signal(signal.SIGINT, self.cb_signal_handler)
my_thing = SomeThingModel()
# type 1
class ModifyThing:
@classmethod
def format_date(cls, thing):
return thing.created.format('MMMM ddd ...')
Message ID <[email protected]>
Created at: Tue, Mar 31, 2020 at 4:38 PM (Delivered after -17996 seconds)
From: BECU Credit Union <[email protected]>
To: [email protected]
Subject: BECU Account Alert
SPF: PASS with IP 64.147.108.52 Learn more
DMARC: 'FAIL' Learn more
1.5434598344325519e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;RemoteHost=beau@theodore
github.com/liamg/aminal/terminal.(*Terminal).processInput
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97
1.5434598344326131e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;CurrentDir=/Users/beau
github.com/liamg/aminal/terminal.(*Terminal).processInput
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97
1.543459834432895e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 1337;ShellIntegrationVersion=5;shell=bash
github.com/liamg/aminal/terminal.(*Terminal).processInput
/Users/beau/go/src/github.com/liamg/aminal/terminal/output.go:97
1.5434598346229088e+09 error terminal/output.go:97 Error handling escape sequence: Unknown OSC control sequence: 133;C;
@beaugunderson
beaugunderson / output.txt
Created October 16, 2018 22:27
timedelta / cProfile repro
working: -25200
broken: no exception
broken: 2177280001.000001
*** PROFILER RESULTS ***
broken (repro.py:18)
function called 1 times
5 function calls in 0.000 seconds