A compiled set of exposed objects that isn't directly executable, but that can be referenced and used by other code.
0
votes
0answers
41 views
libconfini (shared library)
I recently wrote a small INI parsing library. The code is also on GitHub, with documentation. I would like to have opinions, suggestions, and critiques.
confini.h
...
1
vote
0answers
14 views
A tiny library that implements bencoding (simple data encoding format)
Here are three files that make my library that implements a quite simple data encoding. What improvements would you suggest?
README.md
...
3
votes
0answers
26 views
A utility library with type checking, extending, cloning, looping and more
I tried to create a utility library that fills some of the holes in underscoresjs.org
I also added a registry pattern and an event system.
Looking for feedback on how to make this code more useful - ...
5
votes
1answer
32 views
Library to get entropy of files
This is a simple library I just finished writing. The main function is entropy(), which returns the entropy of a file. I'd really appreciate suggestions to improve ...
2
votes
2answers
59 views
Simple logging library in C
This header implements a very simple set of C (only) functions for logging.
This is part of a larger collection of utility functions aimed to be used during the development process, meaning that they ...
6
votes
2answers
95 views
Basic bloom filter library in C
I've started learning C and as an exercise I decided to implement some basic functionality for a bloom filter. This is my first C project, so I wanted to see if I was doing things appropriately (...
-2
votes
1answer
190 views
DLL for basic math operations
I've written a simple C# class to use as a dll for simple math calculations: addition, subtraction, division, and multiplication.
How can I improve this code, specifically for addition and ...
1
vote
0answers
43 views
Comparing a recursive and iterative traveling salesman problem algorithms in Java
This snippet is about two (brute-force) algorithms for solving the traveling salesman problem. Since there is plenty of boiler-plate code, I arranged a GitHub repository for the entire program, in ...
3
votes
0answers
43 views
Easily add Accessibility to your app as an afterthought. Yes, as an afterthought
Accessible apps allow more users to use your app; however, it is usually an afterthought for developers, and it makes your XML layout files messy whether Accessibility was a forethought or ...
3
votes
1answer
68 views
A module to make JSON in Python easier
I recently wrote the livejson module as a way to make working with JSON in Python easier. The idea of the module is that you initialize a livejson.File, and then ...
3
votes
3answers
101 views
Helper utilities for easier benchmarking in C
I have this tiny library for measuring the execution time in milliseconds and returning the duration plus the result:
execres.h
...
2
votes
0answers
44 views
Pointers for C++/CLI library header formatting, layout and design
I have designed a C++/CLI wrapper library that allows C++ applications on windows, and other platforms that can load C dlls (e.g. Java via JNA or Python) to make calls to my .Net library.
I was ...
3
votes
1answer
107 views
A Java library for formatting console output
In perl, there is that format facility for console output. I thought it might be good to practice some library design instead of algorithms once in a while. This may be compared to a GUI library: you ...
0
votes
0answers
53 views
User management library after hard reject on Codecanyon
I spent 2 months working on a user management library, with the intention of selling it on Codecanyon (I've never sold anything there before).
On Codecanyon, there's a screening process for ...
2
votes
1answer
70 views
Library to handle strings and numbers
I have created a pretty bad (just being honest) Golang library. I will take any and all advice, as long as it's helpful. Sorry it's so long. Also, I easily forget some things, so many functions in <...
5
votes
2answers
54 views
Mini HTML document builder in Java - follow-up
(See the previous (and first) iteration.)
Now, I have incorporated all the modifications proposed by janos, and, thus, I have the following:
HtmlViewComponent.java
...
2
votes
1answer
56 views
Mini HTML document builder in Java
(See the next iteration.)
I have this tiny library for building HTML pages in Java code:
HtmlViewComponent.java
...
6
votes
1answer
71 views
Stack Exchange API Python library
I wrote a package a few years ago to make my interactions with the Stack Exchange API more straightforward. I've maintained it over the years and used it in several scripts I've written that interact ...
1
vote
0answers
59 views
Join several columns with a single formula returning an array in Google Sheets
The title was taken from Join several columns with a single formula returning an array a Q&A hosted at http://webapps.stackexchange.com. The content is based on the original version of the answer ...
3
votes
3answers
95 views
Bit manipulation tool set
I made a tool set to facilitate bit manipulation as follows. Any comments are welcome, be it about the interface design, the implementation, or even the naming. Also, I want to make sure that the tool ...
3
votes
1answer
62 views
Shorthand JS library, take 2
Based on the feedback and suggestions I received in my previous post (Lightweight shorthand JS library), I've updated and optimized Mozart JS.
Again, the goal is to have some jQuery-like ...
3
votes
2answers
54 views
Lightweight shorthand JS library
Long story short: I wanted some of the time-saving functionality of jQuery without the bulk of the entire library. So, I wrote a lightweight shorthand library inspired by jQuery I'm calling Mozart JS, ...
6
votes
1answer
87 views
JavaScript DateTime library
To keep it succinct, I created a simple way to input dates and times into an input box without worrying about formatting. As an alternative to date time pickers, dropdowns and all the other various ...
15
votes
3answers
1k views
A library to do maths with matrices written from scratch
Background
Some time ago I've encountered some very good articles about neural networks that represented an ANN as a set of matrices, so everything was done using matrix operations. These articles ...
5
votes
1answer
36 views
Initializing static, machine-specific data in C using a compile-time generated header
I'm using some rather old C code (circa 1996, written in K&R style) to do robust geometric computations, available here, for a library I'm trying to write. In order to work properly, this code has ...
5
votes
2answers
101 views
Single class which holds response and error message
I am working on a library which will make HTTP call to my rest service basis on inputs passed to this library. And whatever response comes back from service whether it is successful response or ...
0
votes
0answers
312 views
Floyd-Warshall algorithm and a tiny all-pairs shortest path library in Java
Now I have implemented the Floyd-Warshall algorithm with emphasis on dropping space complexity from \$\Theta(V^3)\$ to \$\Theta(V^2)\$. Also, I tried hard to make the API as logical as possible. What ...
2
votes
1answer
49 views
My library for 2 dimensional shapes
This is my first OOP PHP library and wanted to get advice on how I can improve what I wrote. This is what I needed to do:
I'm also not sure on what it meant by "proportionally resize the shape up or ...
15
votes
1answer
339 views
C# Treap implementation
I recently developed a simple treap data structure in C#. In the future, I may have the class extend IDictionary. For now, I only expose a public accessor and a ...
15
votes
1answer
157 views
Event-based Xbox Controller polling
The goal of the following code is to be able to use an Xbox Controller in a Java program, it works with the jinput library.
Unfortunately this library is rather old, has little to no documentation ...
1
vote
1answer
47 views
Grid navigation library
I am trying to turn my code into a working library (my first).
Currently you simply call GridNav() and it sets up and executes.
I am currently refactoring out all ...
2
votes
1answer
149 views
Functional pattern matching in C#
I recently read a really interesting post on adding functional pattern matching to C#. Here's a quick and dirty implementation using delegates and dictionaries.
Right now, I require that ...
3
votes
0answers
124 views
Simple REPL command parser in Java
I have this tiny library for implementing simple command line languages. It is not flexible enough for handling actual programming languages, but hopefully it may help implementing simpler REPL's ...
10
votes
4answers
429 views
ASCII art generator in C
I have written an ASCII art generator library. I was practicing data abstraction and code abstraction and I wanted to know if there is something that can be improved.
File tree:
...
12
votes
1answer
380 views
Cactus Reborn - A game engine for text-based adventure games
I'm currently working on reincarnation of the Cactus project, Cactus Reborn, and I've gotten the basic implementation so far. At this point, you can create simple, playable games.
There are currently ...
11
votes
1answer
368 views
Framework to track changes and relationships in C#
Recently, I wanted to see how I might could track state changes to objects, and manage relationships (1 to 1, 1 to N, N to N) between types in C#. This was a really interesting project, and I'm ...
-1
votes
2answers
33 views
A better way to execute a streaming library [closed]
I am building a wrapper around the sharp image library.
The usage revolves around chaining tasks. But I wish to execute it by just passing in a config.
An example ...
4
votes
0answers
124 views
Better rand() API
I use this document as a basis for my mini-library:
Motivation
The std::rand friends are discouraged in C++14, so we want:
A direct replacement to ...
2
votes
2answers
64 views
Library Class: Point - Follow up
This is a follow up of this post.
Changes:
I tried harder to make my code readable yet concise.
All Point instances are immutable and unique.
New, useful ...
8
votes
3answers
363 views
Floating point equality in Java - follow-up
This is a follow up post for this question.
There aren't a lot of changes. The changes (all of them major) are:
I've decided to ditch my previous approach using ...
6
votes
1answer
104 views
Password building and verification
I'm building a library for myself to use to store user passwords. The library itself shouldn't do the retrieval of data, but it should provide container classes for the data.
I would like to know ...
4
votes
1answer
96 views
Dijkstra's shortest path algorithm in C
Now I have this C implementation of the famous algorithm:
dijkstra.h:
...
3
votes
2answers
117 views
Library for C++ programs
Here is some of the code in my library. If there any inefficient things in my code, let me know.
UPDATE: The following code is deprecated. All of your fixes have been incorporated. The project now ...
2
votes
2answers
58 views
C++ Minimalistic Unit Testing Library
I was looking for a unit testing library for C++, and I found many. Unfortunately, I decided I didn't want to use any of them. I decided to make my own.
This is the result. I made heavy use of the ...
2
votes
2answers
686 views
C++ Optional Implementation
I haven't done much programming in C++, so I figured I'd try making an Optional class. I'm mainly concerned that I didn't follow good conventions or that I didn't ...
22
votes
4answers
900 views
Floating point equality in “Numbers.java”
Floating point inaccuracies are really annoying. I understood that in its true sense while developing the next version of Point (this time I'm actually foolproofing my code). Before I upload it for ...
4
votes
1answer
155 views
Generic vector implementation in C using macros
I while ago I experimented with macros in C and came up with the idea of implementing a generic vector library using macros.
This code uses the non standard typeof ...
2
votes
0answers
124 views
Efficient Sets and Maps with Treaps
I wrote up a Treap implementation to serve as the base class for a bunch of augmented data structures (interval sets, plane (2D) sets, order statistic trees), replacing my RB-tree base.
Some ...
4
votes
3answers
693 views
Solidworks EPDM add-in
I need to expand the functionality of this project to encompass more commands (you may notice in GetSelectedFilePaths() I have a case that is not currently used, ...
3
votes
1answer
102 views
Class in a DLL to extract data from a file via many accessors
I'm making a class that takes a path to a text file as an argument in its constructor, and then parses the text file and pulls out a lot of data that it stores as private members. Most of these ...