What is tabby? Tabby is a free, locally running alternative for GitHub Copilot. If you have an Nvidia GPU, you can run it with significant acceleration. Currently, it supports only a few programming languages, but if you use one of these, you can use all the benefits of AI-assisted code completion for free. You can choose different models with different sizes to better fit your hardware.
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
module Palindrome where | |
-- Solution for Project Euler Problem 4 | |
-- https://projecteuler.net/index.php?section=problems&id=4 | |
import Safe (headMay) | |
data Result | |
= Result { getFirst :: Int |
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
from dataclasses import dataclass, field | |
from functools import wraps | |
@dataclass | |
class _TCOCall: | |
args: list = field(default_factory=list) | |
kwargs: dict = field(default_factory=dict) | |
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
from functools import partial | |
class Monoid: | |
@classmethod | |
def mempty(cls): | |
raise NotImplementedError | |
def mappend(self, other): | |
raise NotImplementedError | |