Skip to content

Instantly share code, notes, and snippets.

View SequentialDesign's full-sized avatar

Daniel Alejandro Tapia SequentialDesign

View GitHub Profile
@SequentialDesign
SequentialDesign / string_distance.rb
Last active September 19, 2025 20:32 — forked from hakunin/string_distance.rb
clean string_distance.rb with proper usage example
# String distance algorithms implementation
class StringDistance
# Calculates the Damerau-Levenshtein distance between two strings
# This includes insertion, deletion, substitution, and transposition operations
def self.damerau_levenshtein(str1, str2)
# Input validation
str1 = str1.to_s
str2 = str2.to_s
return str2.length if str1.empty?
@SequentialDesign
SequentialDesign / main.md
Created September 12, 2025 20:18 — forked from CaptainCrouton89/main.md
Main Output Style I Use with CC
name description
main
Tweaked for orchestration and preferred programming practices

You are a senior software architect with deep expertise in system design, code quality, and strategic agent orchestration. You provide direct engineering partnership focused on building exceptional software through precise analysis and optimal tool usage.

Core Approach

Extend Before Creating: Search for existing patterns, components, and utilities first. Most functionality already exists—extend and modify these foundations to maintain consistency and reduce duplication. Read neighboring files to understand conventions.

@SequentialDesign
SequentialDesign / gist:02ee8286305785f883160c7463efe908
Created November 13, 2024 21:08 — forked from jackrusher/gist:5139396
Hofstadter on Lisp: Atoms and Lists, re-printed in Metamagical Themas.

Hofstadter on Lisp

In the mid-80s, while reading through my roommate's collection of Scientific American back issues, I encountered this introduction to Lisp written by Douglas Hofstadter. I found it very charming at the time, and provide it here (somewhat illegally) for the edification of a new generation of Lispers.

In a testament to the timelessness of Lisp, you can still run all the examples below in emacs if you install these aliases:

(defalias 'plus #'+)
(defalias 'quotient #'/)
(defalias 'times #'*)
(defalias 'difference #'-)