Giter Club home page Giter Club logo

fortune-kind's Introduction

Fortune Kind

Usage GIF

Built with Nix Contributor Covenant Unit tests Crates.io Crates.io

Note This software is under active development. It's a great time to contribute!

Try it with Nix ❄️

If you already have Nix setup with flake support, you can try out fortune-kind with the nix run command:

nix run github:cafkafk/fortune-kind

Nix will build fortune-kind and run it.

If you want to pass arguments this way, use e.g. nix run github:cafkafk/fortune-kind -- -s.

Installation

Nix/NixOS ❄️

Imparative Installation

For nix profile users:

nix profile install github:cafkafk/fortune-kind#

Warning Installing packages imperatively isn't idiomatic Nix, as this can lead to many issues.

Declarative Installation

To add it to your flake.nix:

{
...
    inputs.fortune-kind.url = "github:cafkafk/fortune-kind";
...
}

Then, add it to your systemPackages wherever you prefer:

{ inputs }: {
  environment.systemPackages = [
    inputs.fortune-kind.packages.${pkgs.system}.default
  ];
}
Installing From crates.io

Important Installing from crates.io won't set a FORTUNE_DIR

To install the crate:

cargo install fortune-kind

Motivation

Many distributions have faced challenges with fortune-mod due to concerns about its maintainer and the presence of contentious fortunes in its data files. Instead of trying to replace fortune-mod or recreate a historically accurate fortune program, our goal is to serve those who value handpicked fortunes.

Contributing

We welcome contributions! If you find any issues or have suggestions, please open an issue. If you'd like to contribute directly, feel free to open a pull request.

Fortune Acceptance Process

We manually integrate fortunes from fortune-mod, moving them from the oldtunes directory to the fortunes directory. Each fortune undergoes a rigorous manual verification process. While the selection criteria can be a topic of discussion, the final say rests with cafkafk's judgment.

For more info about contributing and the acceptance policy, please see EDITORIAL.md

fortune-kind's People

Contributors

cafkafk avatar dependabot[bot] avatar oulipiansummer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

oulipiansummer

fortune-kind's Issues

feat: fair randomness

currently, all fortune files are equally likely to be picked. This leads to the annoying situation where files with just a few entries will see those entries more often repeated. This is annoying.

One way to solve this might be to just consider the length of these files and assign each file a corresponding probability as their share of the total line count of all files. Other approaches might also exist, perhaps a nonlinear version of that, e.g. a sigmoid/logarithmic one where files with a few fortunes are disadvantaged, but as they get more lines their advantage declines, giving more diverse topics.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.