Skip to content

Instantly share code, notes, and snippets.

View cartercanedy's full-sized avatar
☁️
Thinking about the next rice for my nvim cfg

cartercanedy

☁️
Thinking about the next rice for my nvim cfg
View GitHub Profile
@Mistobaan
Mistobaan / DEBUG.md
Created November 12, 2024 06:11
How to debug Zed with Zed

Overview

A descriptio of all the steps to be able to debug Zed using Zed. This is useful if you want to add features and fix errors within the Zed codebase using Zed itself.

1. Compile Debugger Branch

First you need to download and compile the debugger branch:

@cartercanedy
cartercanedy / Result.cs
Last active March 27, 2025 23:21
C# Result<TOk, TErr> to simulate a basic discriminated union until they get here :)
global using static Results.Result;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.CompilerServices;
namespace Results;
/// <summary>
@cartercanedy
cartercanedy / query.py
Last active November 1, 2023 21:58
Pure Python sequence query functions using Python 3.12+ generic type syntax
from typing import (
Sequence,
Iterable,
Callable
)
type Predicate[ T ] = Callable[ [ T ] , bool ]
type Converter[ TIn , TOut ] = Callable[ [ TIn ] , TOut ]
class QueryException( Exception ):
@fnky
fnky / ANSI.md
Last active May 3, 2025 17:01
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@i-e-b
i-e-b / adler32.cs
Created September 18, 2017 14:30
Adler32 hash in C#
private static uint Adler32(string str)
{
const int mod = 65521;
uint a = 1, b = 0;
foreach (char c in str) {
a = (a + c) % mod;
b = (b + a) % mod;
}
return (b << 16) | a;
}
@yannabraham
yannabraham / doseResponsePython.ipynb
Last active February 26, 2025 14:29
How to do Dose/Response curve fitting in Python for Drug Discovery
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.