frazile_algorithm 0.0.3

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 51

Frazile Algorithm #

Frazile Algorithm is a open source package which provides users the most popular & commonly used algorithms in popular companies Google, Facebook, Instagram, WhatsApp.

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

frazile_algorithm: <latest_version>

Usage #

Facemash Algorithm #

import 'package:frazile_algorithm/frazile_algorithm.dart';

class Facemash extends StatelessWidget {
  double $Ra = 1500.0;
  double $Rb = 1500.0;
  double $k = 10;   // Remember always use same value of $k for both facemash_win() & facemash_loss() functions.

  @override
  Widget build(BuildContext context) => Scaffold(
          appBar: AppBar(
            backgroundColor: Colors.blue,
            title: Text('Facemash Algorithm'),
          ),
          body: Card(
            elevation: 1.0,
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: <Widget>[
                Container(
                  margin: EdgeInsets.only(top: 10.0),
                  child: Center(
                    child: Text(
                      'Expected',
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.only(top: 16.0),
                  child: Center(
                    child: Text(
                      Frazile_Algo()
                          .facemash_expected($Rb, $Ra)        // This is how we will calculate expectation of Ra.
                          .toString(),
                      style: TextStyle(fontSize: 25.0, color: Colors.pink),
                    ),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: 10.0),
                  child: Center(
                    child: Text(
                      'Win',
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.only(top: 16.0),
                  child: Center(
                    child: Text(
                      Frazile_Algo()
                      // facemash_win takes 3 parameters [$score, $expected, $k] where $k is optional & by default $k = 24
                          .facemash_win($Ra.toInt(), Frazile_Algo().facemash_expected($Rb, $Ra))  // Ra wins
                          .toString(),
                      style: TextStyle(fontSize: 25.0, color: Colors.pink),
                    ),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: 10.0),
                  child: Center(
                    child: Text(
                      'Loss',
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.only(top: 16.0),
                  child: Center(
                    child: Text(
                      Frazile_Algo()
                      // facemash_loss takes 3 parameters [$score, $expected, $k] where $k is optional & by default $k = 24
                          .facemash_loss($Rb.toInt(), Frazile_Algo().facemash_expected($Ra, $Rb))   // Rb loss
                          .toString(),
                      style: TextStyle(fontSize: 25.0, color: Colors.pink),
                    ),
                  ),
                ),
              ],
            ),
          ),
    );
}

💰 Donations #

This project needs you! If you would like to support this project's further upgradations, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!

Paypal

For All Developers

  • Donate $5: Thank's for creating this project, here's a coffee or juice or beer for you!
  • Donate $10: Wow, I am stunned. Let me take you to the movies.
  • Donate $15: I really appreciate your work, let's grab some lunch!
  • Donate $20: That's some awesome stuff you did right there, Pizza/Burger is on me!
  • Donate $25: Thank's for the code, get a Firebase Flame Plan for your next project.
  • Donate $30: I really really want to support this project, great job!
  • Donate $35: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate $40: I want to learn more let's connect, Dinner is on me!
  • Donate $45: Many many thanks for the flutter project in dart language.
  • Donate $50: Thanks to tell the working of Firebase Cloud Functions in JavaScript/TypeScript & using of Nodejs & Firebase CLI!
  • Donate $60: Let me buy u some Storage Server, about say 100 GB!
  • Donate $70: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB)!
  • Donate $80: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights billings!
  • Donate $90: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights & Internet billings!
  • Donate $100: Thank's for creating the best plugin/package/code, here's a 2TB HDD for your Storage Server is on me!
  • Donate $299: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple TV 4K for yourself!
  • Donate $799: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Watch for yourself!
  • Donate $1500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPhone for yourself!
  • Donate $2000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPad for yourself!
  • Donate $2500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Mac Mini & Storage Server for yourself!
  • Donate $3000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple MacBook Pro for yourself!
  • Donate $7000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iMac Pro 5K for yourself!

For UK Developers

  • Donate £5: Thank's for creating this project, here's a coffee or juice or beer for you!
  • Donate £10: Wow, I am stunned. Let me take you to the movies.
  • Donate £15: I really appreciate your work, let's grab some lunch!
  • Donate £20: That's some awesome stuff you did right there, Pizza/Burger is on me!
  • Donate £25: Thank's for the code, get a Firebase Flame Plan for your next project.
  • Donate £30: I really really want to support this project, great job!
  • Donate £35: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate £40: I want to learn more let's connect, Dinner is on me!
  • Donate £45: Many many thanks for the flutter project in dart language.
  • Donate £50: Thanks to tell the working of Firebase Cloud Functions in JavaScript/TypeScript & using of Nodejs & Firebase CLI!
  • Donate £60: Let me buy u some Storage Server, about say 100 GB!
  • Donate £70: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB)!
  • Donate £80: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights billings!
  • Donate £90: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights & Internet billings!
  • Donate £100: Thank's for creating the best plugin/package/code, here's a 2TB HDD for your Storage Server is on me!
  • Donate £299: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple TV 4K for yourself!
  • Donate £799: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Watch for yourself!
  • Donate £1500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPhone for yourself!
  • Donate £2000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPad for yourself!
  • Donate £2500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Mac Mini & Storage Server for yourself!
  • Donate £3000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple MacBook Pro for yourself!
  • Donate £7000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iMac Pro 5K for yourself!

Of course, you can also choose what you want to donate, all donations are awesome!

Developed By #

Parth Aggarwal CEO & Developer of Frazile Inc.

0.0.1 - January 4, 2019. #

  • Facemash Algorithm released.

0.0.2 – January 5, 2019. #

  • Facemash Algorithm bugs fixed.

0.0.3 – January 9, 2019. #

  • Added pi funtion which returns PI value.

example/README.md

Frazile Algorithm #

Frazile Algorithm is a open source package which provides users the most popular & commonly used algorithms in popular companies Google, Facebook, Instagram, WhatsApp.

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

frazile_algorithm: <latest_version>

Usage #

Facemash Algorithm #

import 'package:frazile_algorithm/frazile_algorithm.dart';

class Facemash extends StatelessWidget {
  double $Ra = 1500.0;
  double $Rb = 1500.0;
  double $k = 10;   // Remember always use same value of $k for both facemash_win() & facemash_loss() functions.

  @override
  Widget build(BuildContext context) => Scaffold(
          appBar: AppBar(
            backgroundColor: Colors.blue,
            title: Text('Facemash Algorithm'),
          ),
          body: Card(
            elevation: 1.0,
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: <Widget>[
                Container(
                  margin: EdgeInsets.only(top: 10.0),
                  child: Center(
                    child: Text(
                      'Expected',
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.only(top: 16.0),
                  child: Center(
                    child: Text(
                      Frazile_Algo()
                          .facemash_expected($Rb, $Ra)        // This is how we will calculate expectation of Ra.
                          .toString(),
                      style: TextStyle(fontSize: 25.0, color: Colors.pink),
                    ),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: 10.0),
                  child: Center(
                    child: Text(
                      'Win',
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.only(top: 16.0),
                  child: Center(
                    child: Text(
                      Frazile_Algo()
                      // facemash_win takes 3 parameters [$score, $expected, $k] where $k is optional & by default $k = 24
                          .facemash_win($Ra.toInt(), Frazile_Algo().facemash_expected($Rb, $Ra))  // Ra wins
                          .toString(),
                      style: TextStyle(fontSize: 25.0, color: Colors.pink),
                    ),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(top: 10.0),
                  child: Center(
                    child: Text(
                      'Loss',
                      style: TextStyle(fontSize: 20.0),
                    ),
                  ),
                ),
                Container(
                  padding: EdgeInsets.only(top: 16.0),
                  child: Center(
                    child: Text(
                      Frazile_Algo()
                      // facemash_loss takes 3 parameters [$score, $expected, $k] where $k is optional & by default $k = 24
                          .facemash_loss($Rb.toInt(), Frazile_Algo().facemash_expected($Ra, $Rb))   // Rb loss
                          .toString(),
                      style: TextStyle(fontSize: 25.0, color: Colors.pink),
                    ),
                  ),
                ),
              ],
            ),
          ),
    );
}

💰 Donations #

This project needs you! If you would like to support this project's further upgradations, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!

Paypal

For All Developers

  • Donate $5: Thank's for creating this project, here's a coffee or juice or beer for you!
  • Donate $10: Wow, I am stunned. Let me take you to the movies.
  • Donate $15: I really appreciate your work, let's grab some lunch!
  • Donate $20: That's some awesome stuff you did right there, Pizza/Burger is on me!
  • Donate $25: Thank's for the code, get a Firebase Flame Plan for your next project.
  • Donate $30: I really really want to support this project, great job!
  • Donate $35: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate $40: I want to learn more let's connect, Dinner is on me!
  • Donate $45: Many many thanks for the flutter project in dart language.
  • Donate $50: Thanks to tell the working of Firebase Cloud Functions in JavaScript/TypeScript & using of Nodejs & Firebase CLI!
  • Donate $60: Let me buy u some Storage Server, about say 100 GB!
  • Donate $70: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB)!
  • Donate $80: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights billings!
  • Donate $90: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights & Internet billings!
  • Donate $100: Thank's for creating the best plugin/package/code, here's a 2TB HDD for your Storage Server is on me!
  • Donate $299: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple TV 4K for yourself!
  • Donate $799: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Watch for yourself!
  • Donate $1500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPhone for yourself!
  • Donate $2000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPad for yourself!
  • Donate $2500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Mac Mini & Storage Server for yourself!
  • Donate $3000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple MacBook Pro for yourself!
  • Donate $7000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iMac Pro 5K for yourself!

For UK Developers

  • Donate £5: Thank's for creating this project, here's a coffee or juice or beer for you!
  • Donate £10: Wow, I am stunned. Let me take you to the movies.
  • Donate £15: I really appreciate your work, let's grab some lunch!
  • Donate £20: That's some awesome stuff you did right there, Pizza/Burger is on me!
  • Donate £25: Thank's for the code, get a Firebase Flame Plan for your next project.
  • Donate £30: I really really want to support this project, great job!
  • Donate £35: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate £40: I want to learn more let's connect, Dinner is on me!
  • Donate £45: Many many thanks for the flutter project in dart language.
  • Donate £50: Thanks to tell the working of Firebase Cloud Functions in JavaScript/TypeScript & using of Nodejs & Firebase CLI!
  • Donate £60: Let me buy u some Storage Server, about say 100 GB!
  • Donate £70: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB)!
  • Donate £80: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights billings!
  • Donate £90: Thank's for creating this plugin/package/code, here's some bugs for Domain Name with SSL, Storage Server(150 GB), Lights & Internet billings!
  • Donate £100: Thank's for creating the best plugin/package/code, here's a 2TB HDD for your Storage Server is on me!
  • Donate £299: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple TV 4K for yourself!
  • Donate £799: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Watch for yourself!
  • Donate £1500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPhone for yourself!
  • Donate £2000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iPad for yourself!
  • Donate £2500: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple Mac Mini & Storage Server for yourself!
  • Donate £3000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple MacBook Pro for yourself!
  • Donate £7000: Thank's buddy for the awesome plugin/package/app/game developed, buy Apple iMac Pro 5K for yourself!

Of course, you can also choose what you want to donate, all donations are awesome!

Developed By #

Parth Aggarwal CEO & Developer of Frazile Inc.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  frazile_algorithm: ^0.0.3

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:frazile_algorithm/frazile_algorithm.dart';
  
Version Uploaded Documentation Archive
0.0.3 Jan 8, 2019 Go to the documentation of frazile_algorithm 0.0.3 Download frazile_algorithm 0.0.3 archive
0.0.2 Jan 5, 2019 Go to the documentation of frazile_algorithm 0.0.2 Download frazile_algorithm 0.0.2 archive
0.0.1 Jan 4, 2019 Go to the documentation of frazile_algorithm 0.0.1 Download frazile_algorithm 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
9
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
85
Overall:
Weighted score of the above. [more]
51
Learn more about scoring.

We analyzed this package on Jun 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/frazile_algorithm.dart. (-1.99 points)

Analysis of lib/frazile_algorithm.dart reported 4 hints:

line 7 col 7: Name types using UpperCamelCase.

line 11 col 10: Name non-constant identifiers using lowerCamelCase.

line 15 col 10: Name non-constant identifiers using lowerCamelCase.

line 19 col 10: Name non-constant identifiers using lowerCamelCase.

Maintenance issues and suggestions

Support latest dependencies. (-5 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test