Questions tagged [modules]
A logical subdivision of a larger, more complex system.
118 questions
8
votes
3
answers
285
views
Modern utility to get type name strings
This is a modernization of a very old utility I’ve had in my personal code toolbox for a while. There are two variable template constants:
indi::type_name<T>:...
1
vote
1
answer
216
views
Version 2 of my Python Password Manager
I am still just starting out with python and just finished learning about classes, with no further understanding on many python modules. With this in mind, this is one of the biggest/hardest things I ...
3
votes
1
answer
167
views
Program for creating custom directory listings
The following code was written to create custom directory listings for the Abyss Web Server. It attempts to provide an improved example of the included documentation for doing so in Python. However, ...
6
votes
3
answers
178
views
Tic-Tac-Toe Backend for Commercial Use
I've been working on a tic-tac-toe backend for an interactive commercial-use display and was wondering if I could get some feedback on it.
...
6
votes
1
answer
114
views
How to structure and write exchangable calculation models (in python3 modules)?
I do research and compare different numeric models to each other. Therefore, I want to easily switch out the numeric models in my simulations and evaluation code.
Some models work in cartesian ...
3
votes
1
answer
129
views
All core MediaWiki upgrade script (round 2)
The following script upgrades an existing, all core (no add ons) MediaWiki install. I run it with set -x for debugging (I avoid ...
2
votes
0
answers
244
views
naming convention for atomic design
We follow atomic design principle. More here
I have a react app where we put small components like button, label etc and call it atoms.
In that I have made loading and Error component responsible for ...
2
votes
1
answer
106
views
To Do List Project - app lets you make projects and inside of this projects you can save to-dos
I have built a To Do App in Javascript, using Webpack and some modules. The app lets you store projects (School, Sport, Grocery, etc.)... And inside these projects, you can store todo items... You can ...
3
votes
1
answer
73
views
(Improved) get-release npm module
Improved version of the original question
I've created a simple npm module and CLI program to get the latest GitHub and Bitbucket release from their APIs using Node.js. Please tell me if there's ...
3
votes
2
answers
88
views
Adding and Retrieving Players in a simple Pre-Flop Poker Hud with Local Storage
I am building a browser based Pre-Flop HUD that for now just tracks VPIP, PFR and number of hands played for an opponent (https://pokercopilot.com/poker-statistics/vpip-pfr). I am currently using ...
1
vote
1
answer
53
views
Customized method for dataframe in my analysis module
Please download the file and save in home directory and extract it:
https://www.dropbox.com/s/swtw8bk35zr1i6d/analyse.7z?dl=0
I can get some warrants info.
...
3
votes
3
answers
307
views
Linear Regression Class in Python
I have recently been brushing up on my statistics and calculus and wanted to implement Linear Regression, the code will be for a calculus/statistics library I am working on (I know there are libraries ...
6
votes
1
answer
97
views
Raku / Perl6: A module to enable escape codes in the win32 console, naming suggestions
I have this little project i am about to release.
https://github.com/holli-holzer/perl6-Win-VT
I would be happy about a code review and suggestions for a better name.
Discussion in IRC yielded ...
3
votes
0
answers
70
views
Eassily create a logger in python for many modules with loglevel set according to command line arguments
I'm trying to learn writing python programs in a modular way as much as possible. One of the issues I've had difficulty to solve is parsing command line arguments (with ...
1
vote
1
answer
116
views
Reusable vector module with tests
I'm learning rust with mostly a background in managed languages. I have a little C background.
As a learning project I am re-implementing a linear-transformations library I've been working on in ...
3
votes
1
answer
210
views
JavaScript module to filter data and render it as a table
I want to organize some JavaScript code using module pattern.
The scenario is as follows: Having the following html table created dynamically
...
2
votes
2
answers
244
views
Mapping one array onto another where columns from first array become rows in second array
I am processing an unformatted CSV, New-AmbSYS-to-2018-Jan.csv, from NHS England Ambulance Quality Indicators, by reading its contents into an array, and carrying out a number of steps that lead to a ...
1
vote
3
answers
163
views
Modular square checker in ANSI-C
I've written a simple program using modular programming in C (using a lot of functions), that gets a line of input from the user, and then prints if a given input forms a magic square or not.
The ...
6
votes
3
answers
4k
views
Simple Java program - Coding bat sumNumbers
The problem is stated as follows:
Given a string, return the sum of the numbers appearing in the string, ignoring all other characters. A number is a series of 1 or more digit chars in a row. (Note: ...
9
votes
2
answers
2k
views
Python Export Decorator
In Python, we use __all__ to explicitly denote the public API of a module or package. That looks like this:
...
3
votes
1
answer
69
views
Copying and resizing pictures, depending on user input
I'm working on a macro which copies some pictures to a new sheet, then resizes the pictures. The user can input a number 1, 2, ..., 5 and, depending on the number, the macro returns a different set of ...
3
votes
1
answer
1k
views
JS calculator module using functional programming
All of the code is self-explanatory and pretty much complete.
What the code does:
Calculates using onscreen numerics and operators
Validates any erroneous operations, such as 4 ** 8 or *9
Good ...
2
votes
1
answer
80
views
NodeJS module to calculate linear motion
I am on the process of changing jobs, so I would like to get an idea of what I do wrong in order to improve.
For this, I have created a small node module. It's very simple; it calculates linear ...
4
votes
1
answer
277
views
A hash cracker for Python 3.0 and up (module)
I've worked on pycrack.py to improve it (hopefully). New features:
Renamed to kronos (kronos.py).
Attack modes:
Bruteforce;
Wordlist attack.
Portability:
Kronos can run on Windows, MacOS and Linux, ...
6
votes
2
answers
216
views
MongoDB Perl Wrapper
I'm trying to create a custom "mongodb perl wrapper".
I created the following perl module, which local on my machine runs.
My questions to the community are:
Would you create the module different?
Do ...