This file contains hidden or 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
"""Input/output from the from/to the user""" | |
import sys | |
from abc import ABC, abstractmethod | |
from io import BytesIO | |
import speech_recognition | |
from gtts import gTTS | |
from pyaudio import PyAudio | |
from pydub import AudioSegment |
This file contains hidden or 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
" Ollama Plugin: Send selected text or the whole buffer to Ollama | |
" Escape the input | |
function! EscapeSingleQuotes(input) | |
" Escape single quotes for safe use in shell commands | |
return substitute(a:input, "'", "'\"'\"'", "g") | |
endfunction | |
" Ensure the Command-Result (CR) window exists | |
function! EnsureCRWindow() |
This file contains hidden or 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 python | |
from dataclasses import dataclass | |
from datetime import datetime, timedelta | |
from functools import update_wrapper | |
@dataclass(frozen=True) | |
class Call: | |
func: callable |
This file contains hidden or 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 python | |
"""Visual demonstration of sort algorithms""" | |
import curses | |
import random | |
import sys | |
import time | |
class SortBase: |