- 27 10月, 2021 11 次提交
-
-
由 harshitkap00r 提交于
Take less time to calculate
-
由 Tianyi Zheng 提交于
* Rewrite parts of Vector and Matrix methods * Refactor determinant method and add unit tests Refactor determinant method to create separate minor and cofactor methods. Add respective unit tests for new methods. Rename methods using snake case to follow Python naming conventions. * Reorganize Vector and Matrix methods * Update linear_algebra/README.md Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Fix punctuation and wording * Apply suggestions from code review Co-authored-by: NJohn Law <johnlaw.po@gmail.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Dylan Buchi 提交于
-
由 Matteo Messmer 提交于
* sphere intersection + spherical cap volume formulas * reformatted * Update volume.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Edward Nuno 提交于
* Fix mypy annotations for stack_using_dll.py * Replace Optional with inline union type
-
由 Edward Nuno 提交于
-
由 Sabari Ganesh 提交于
* Added physical pressure units This uses tuple pair which stores units required to be converted to respective other units as mentioned. Available Units:- Pascal,Bar,Kilopascal,Megapascal,psi(pound per square inch),inHg(in mercury column),torr,atm * Formatted file File was formatted as per repo rules * Reformatted file :) * Added more reference * More reference added
-
由 Srishtik Bhandarkar 提交于
* Added solution for probelm_686 of project_euler * Changed documentation and formatting. * Added ref link to optimization logic * Update project_euler/problem_686/sol1.py Co-authored-by: NJohn Law <johnlaw.po@gmail.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
由 Connor Bottum 提交于
-
由 Christian Clauss 提交于
* Financial: principle -> principal The originally invested amount of money: `principal` -- https://www.grammarly.com/blog/principle-principal/ * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Tarcisio Bruni Rangel 提交于
* feat: creates math calculations for financials * refactor: make pull request items requirements * refactor: provides type hint for parameters * refactor: applies code review suggestions * refactor: adds more examples tests * refactor: throws ValueError instead of Exception * refactor: fix formatting * refactor: fix formatting * Update interest.py * Update and rename financials/ABOUT.md to financial/ABOUT.md * Rename financials/__init__.py to financial/__init__.py * Rename financials/interest.py to financial/interest.py * https://www.investopedia.com * Update __init__.py * pre-commit: Disable end-of-file-fixer * Revert change to pre-commit * Update __init__.py * __init__.py Co-authored-by: NChristian Clauss <cclauss@me.com> Co-authored-by: NJohn Law <johnlaw.po@gmail.com>
-
- 26 10月, 2021 13 次提交
-
-
由 Sabari Ganesh 提交于
* Added volume conversions This is a file which has relevant function which helps in conversion between volume units. Available Units:- Cubic metre,Litre,KiloLitre,Gallon,Cubic yard,Cubic foot,cup The file is also written in a way that , adding a new unit can easily be done by modifying tuple available in the source code * Formatted file The file was formatted to follow the syntax formatting rules of the repo * Formatted file further
-
由 Rohan R Bharadwaj 提交于
* Add decode function * Update base16.py * Update base16.py * Update base16.py * Made the line shorter * Made another line shorter
-
由 Prakhar Gurunani 提交于
* updating DIRECTORY.md * updating DIRECTORY.md * Create get_top_hn_posts.py * updating DIRECTORY.md * Add return type and desc * Add texttable * Update web_programming/get_top_hn_posts.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update web_programming/get_top_hn_posts.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Get top 10 posts * Update get_top_hn_posts.py * Don't use texttable * Setup doctest * Fix pre-commit issues * Remove print statement * Add hackernews_top_stories_as_markdown() Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Christian Clauss 提交于
* Fix validate_initial_digits of credit_card_validator.py @Bhargavishnu I think that I broke the logic of validate_initial_digits which should require that credit_card_number[0] is 3 before checking that credit_card_number[1] is 4, 5, or 7. Please verify the new changes and the new test cases to make sure that this is correct. Thanks! * updating DIRECTORY.md Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
由 Erwin Junge 提交于
* [mypy] annotate `ciphers` * Update ciphers/polybius.py * Update polybius.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Erwin Junge 提交于
-
由 Andrew Grangaard 提交于
-
由 Andrew Grangaard 提交于
* [mypy] Fixes type annotations in other/graham_scan #4052 + Prefer tuple to list for point x,y pairs * NOP: fixes typo in comment
-
由 Prakhar Gurunani 提交于
* updating DIRECTORY.md * Create get_user_tweets.py * updating DIRECTORY.md * Reformat code with black * Add argument type * Add return type * Add tweepy * Fix isort issues * Fix flake8 issues * WIP: doctest * Doctest setup and format with pre-commit * Remove doctests * Update web_programming/get_user_tweets.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update get_user_tweets.py Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Leoriem-code 提交于
* add implementation of Nagel and Schrekenberg algo * Update cellular_automata/nasch.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update nasch.py * Update and rename nasch.py to nagel_schrekenberg.py * Update cellular_automata/nagel_schrekenberg.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update nagel_schrekenberg.py * Update nagel_schrekenberg.py * Update nagel_schrekenberg.py * update nagel_schrekenberg.py * Update nagel_schrekenberg.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Leoriem-code 提交于
* Improved prime_numbers.py * update prime_numbers.py * Increase the timeit number to 1_000_000 Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 @im_8055 提交于
* Add credit card validator * * Add return type hint * Add test cases for validator function * Add test cases * Feature: Rename file * Update strings/cc_validator.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update strings/cc_validator.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Update strings/cc_validator.py Co-authored-by: NChristian Clauss <cclauss@me.com> * Review: Fix redundant checks * Review: Refactor * Fix: Update test cases * Refactor * Update credit_card_validator.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Mohammad Firmansyah 提交于
* add an algorithm to spin some words * Update index.py * Adding type hint of spin_words function * Update and rename python_codewars_disemvowel/index.py to strings/reverse_long_words.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
- 25 10月, 2021 6 次提交
-
-
由 Maxim Smolskiy 提交于
* Fix typo * Improve solution * Retest * Replace n with number
-
由 Maxim Smolskiy 提交于
-
由 Manuel Di Lullo 提交于
* added complete graph generator function * added doctest, type hints, wikipedia explanation * added return type hint for function complete_graph * added descriptive name for the parameter: n * random graph generator with doctest and type hints * validated using pre-commit * Delete complete_graph_generator.py * fixed doctest * updated following reviews * simplified the code following reviews * fixed doctest and solved consistency issues * consistency fixes
-
由 Francisco Perez 提交于
-
由 Vinicius Cordeiro 提交于
* Add Bifid cipher * Add missing type hint * Fix variable names
-
由 Marcel Kuhmann 提交于
-
- 24 10月, 2021 3 次提交
-
-
由 Erwin Junge 提交于
-
由 Martmists 提交于
* Add IIR Filter and Butterworth design functions Signed-off-by: NMartmists <martmists@gmail.com> * naming conventions and missing type hints Signed-off-by: NMartmists <martmists@gmail.com> * Link wikipedia in IIRFilter Signed-off-by: NMartmists <martmists@gmail.com> * Add doctests and None return types Signed-off-by: NMartmists <martmists@gmail.com> * More doctests Signed-off-by: NMartmists <martmists@gmail.com> * Requested changes Signed-off-by: NMartmists <martmists@gmail.com> * run pre-commit Signed-off-by: NMartmists <martmists@gmail.com> * Make mypy stop complaining about ints vs floats Signed-off-by: NMartmists <martmists@gmail.com> * Use slower listcomp to make it more readable Signed-off-by: NMartmists <martmists@gmail.com> * Make doctests happy Signed-off-by: NMartmists <martmists@gmail.com> * Remove scipy Signed-off-by: NMartmists <martmists@gmail.com> * Test coefficients from bw filters Signed-off-by: NMartmists <martmists@gmail.com> * Protocol test Co-authored-by: NChristian Clauss <cclauss@me.com> * Make requested change Signed-off-by: NMartmists <martmists@gmail.com> * Types Signed-off-by: NMartmists <martmists@gmail.com> * Apply suggestions from code review * Apply suggestions from code review * Update butterworth_filter.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Christian Clauss 提交于
* mandelbrot.py: Commenting out long running tests * updating DIRECTORY.md * Comment out 9 sec doctests * Update bidirectional_breadth_first_search.py * Comment out slow tests * Comment out slow (9.15 sec) pytests... * # Comment out slow (4.20s call) doctests * Comment out slow (3.45s) doctests * Update miller_rabin.py * Update miller_rabin.py Co-authored-by: Ngithub-actions <${GITHUB_ACTOR}@users.noreply.github.com>
-
- 23 10月, 2021 7 次提交
-
-
由 Studiex 提交于
* Add files via upload * Update sha256.py * Update sha256.py * Update sha256.py * Update sha256.py * Update sha256.py * Update sha256.py * Update sha256.py * Update sha256.py * @staticmethod def preprocessing(data: bytes) -> bytes: Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Limbad Yash 提交于
* Updated Pop function Added underflow condition * Update Pop Function Added condition to check underflow of stack * Update stack.py * if not self.stack: raise StackUnderflowError * Add doctests * StackUnderflowError * ..., not .... * Update stack.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Mitheel 提交于
-
由 Jaydeep Das 提交于
Added feature to `web_programming/nasa_data.py` : Can download the APOD image to a specified location on disk. (#5551) * Added a feature to download images. * Minor changes * Update nasa_data.py * : Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Jaydeep Das 提交于
* Added new file: nasa_data.py * Modified as per review * Minor change * print(get_archive_data("apollo 2011")["collection"]["items"][0]["data"][0]["description"]) * Update nasa_data.py Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Atishaye Jain 提交于
* add check_cycle.py * Update graphs/check_cycle.py Co-authored-by: NJohn Law <johnlaw.po@gmail.com> * Update check_cycle.py * Apply suggestions from code review Co-authored-by: NJohn Law <johnlaw.po@gmail.com> Co-authored-by: NChristian Clauss <cclauss@me.com>
-
由 Dylan Buchi 提交于
* [mypy] Add/fix type annotations for linked queue in data_structures * add return type annotation to __iter__ * Add more readable syntax
-