A category C consists of:
- Objects: Ob(C)
- Morphisms: ∀A,B ∈ Ob(C), Hom(A,B)
- Identity: ∀A ∈ Ob(C), idₐ: A → A
| #!/usr/bin/env perl | |
| # Ollama Markdown to Terminal Colors Converter - Perl Version | |
| # Usage: ollama run llama "your prompt" | ./ollama-markdown-colorizer.pl | |
| use strict; | |
| use warnings; | |
| use Term::ReadKey; | |
| # Disable buffering for immediate output |
| // MARK: - main.swift | |
| import Foundation | |
| import PDFKit // Import PDFKit for native PDF processing | |
| import Network // Import Network framework for web server capabilities | |
| import AppKit // Import AppKit for GUI elements (NSWindow, NSTextView, NSButton) | |
| import UniformTypeIdentifiers // For UTType and MIME type mapping | |
| // Define a custom error type for better error handling | |
| enum IndexerError: Error, CustomStringConvertible { |
| /* | |
| +----------------------------------------------------------------------+ | |
| | Lua | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 3.01 of the PHP license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | | |
| | http://www.php.net/license/3_01.txt | | |
| | If you did not receive a copy of the PHP license and are unable to | | |
| | obtain it through the world-wide-web, please send a note to | |
| #!/usr/bin/env fish | |
| function compiler_helper | |
| set results (pkg-config --list-all | fzf -m | awk '{print $1}' | xargs -I{} pkg-config --cflags --libs {} | tr '\n' ' ' | sed 's/ $/\n/') | |
| echo $results | |
| end | |
| # Header function open | |
| function explore_library_headers | |
| set libraries (pkg-config --list-all | fzf -m | awk '{print $1}') |
| javascript:(function() { | |
| const hide = e => e.style.display = 'none'; | |
| const show = e => e.style.display = 'inline-block'; | |
| const states = ['initial', 'hide-shorts', 'hide-others']; | |
| const isHidden = e => e.style.display === 'none'; | |
| const allElements = Array.from(document.querySelectorAll("ytd-grid-video-renderer")); | |
| const shorts = allElements.filter(e => e.querySelector("span[aria-label='Shorts']")); | |
| const others = allElements.filter(e => !e.querySelector("span[aria-label='Shorts']")); |
I hereby claim:
To claim this, I am signing this object:
| # = MONKEY PATCH: Memoize Mysql2 Columns | |
| # | |
| # Reduces SHOW FIELDS selects in production to essentially 0 calls. | |
| # | |
| # == Reason: | |
| # | |
| # * We have some pages that are (with rails 3.0.12) generating nearly 1200 SHOW | |
| # FIELDS sql statements. | |
| # * These come from ActiveRecord::Associations during complex join semantics. | |
| # * Esentially, through some relations, Arel::Table instances don't have |
| defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' | |
| killall Dock |