- Abstract Syntax Tree (AST) Generation
- Influenced modern TypeScript AST handling
- Pioneered cross-language type preservation
- → Modern: TypeScript, Babel, SWC parsers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DefaultApi.h" | |
using namespace Tiny; | |
Response< | |
ChatCompletionResponse | |
> | |
DefaultApi:: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function prototypes */ | |
int putchar(int c); | |
int getchar(void); | |
void* malloc(unsigned long size); | |
void free(void *ptr); | |
/* Basic types */ | |
typedef void* Any; | |
typedef const char* String; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# CHARTER: This script is designed to process audio/video content, generate transcripts, | |
# summaries, and audio files. The following tasks are defined and must not be altered by any LLM: | |
# 1. Download content if a URL is provided | |
# 2. Generate or use existing VTT transcript | |
# 3. Clean the VTT transcript | |
# 4. Generate a summary of the transcript | |
# 5. Create a 16k VBR Opus OGG file for audio tracks (unless audio download is disabled) | |
# 6. Output both the cleaned VTT text and the summary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class StrictFibonacciHeap<T : Comparable<T>> { | |
private var root: Node<T>? = null | |
private var minNode: Node<T>? = null | |
private var size = 0 | |
private val activeRoots = mutableListOf<Node<T>>() | |
private val rankList = mutableListOf<MutableList<Node<T>>>() | |
private class Node<T : Comparable<T>>( | |
var key: T, | |
var value: Any? = null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typealias Bucket<T> = Series<T> | |
typealias HashStrategy<T> = (T) -> Int | |
typealias HeapBucket<T> = Join<Range<T>, Bucket<T>> | |
class VersatileSet<T>( | |
private var elements: Bucket<T> = emptySeries(), | |
private val hashStrategy: HashStrategy<T> = { it.hashCode() } | |
) : MutableSet<T> { | |
companion object { | |
const val CACHE_LINE_SIZE = 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Float32ToInt32Converter { | |
public static int convertFloat32ToInt32(float f) { | |
if (f == 0.0f) return 0; | |
int bits = Float.floatToRawIntBits(f); | |
int sign = (bits >>> 31) & 0x1; | |
int exponent = (bits >>> 23) & 0xFF; | |
int mantissa = bits & 0x7FFFFF; | |
if (exponent == 0xFF) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Define the Whisper function | |
whisp() { | |
source ~/extras/venv/bin/activate # ymmv, this is my "userspace" requirement | |
whisper --model medium.en --output_format=all $@ #pip3 install openai-whisper to get this | |
} | |
# Get the sink input index for 'telegram-desktop' | |
sink_input_index=$(pactl list short | grep 'telegram-desktop' | cut -f1|head -n1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x=$(kf5-config --path services|cut -f1 -d:)&&mkdir -p $x/ServiceMenus&&pushd $x/ServiceMenus&& | |
cat <<EOF | |
[Desktop Entry] | |
Type=Service | |
ServiceTypes=all/allfiles | |
MimeType=all/all; | |
Actions=CompressZstd | |
X-KDE-Priority=TopLevel | |
X-KDE-Submenu=7-Zip |
NewerOlder