A compiled set of exposed objects that isn't directly executable, but that can be referenced and used by other code.

learn more… | top users | synonyms (1)

1
vote
0answers
25 views

A vanilla JavaScript library for typesetting algorithms in HTML documents using XML and LaTeX - follow-up

This post is basically a follow-up to my related question. I added some new keywords, made the code less DRY. Also, the library inserts the required CSS to the HTML document, so that there is no need ...
7
votes
0answers
64 views

A vanilla JavaScript library for typesetting pseudocode in HTML documents

I have this plain JavaScript library for typesetting pseudocode in HTML documents. (See the documentation for details.) (See the GitHub repository - broken as of now.) Source code algotype.js <...
-1
votes
0answers
24 views

Delegating raise of exception to client code [closed]

Suppose I want client code to override exception behaviour. What is the most appropriate way of doing this? It is understood that the callback must not return to its caller: It should either abort, or ...
0
votes
0answers
15 views

Arbitrary precision π (Circular Constant) in Java - MathCore #2

This post is the second in the MathCore series. The previous post is here: Arbitrary Precision nth Principal Root in Java - MathCore #1 The posts are made incrementally, that is, the classes in the ...
3
votes
0answers
32 views

Arbitrary Precision nth Principal Root in Java - MathCore #1

This post is the first in the MathCore series. The next post is here: Arbitrary precision π (Circular Constant) in Java - MathCore #2 Disclaimer My project is too big to be reviewed in a single ...
2
votes
1answer
85 views

Reading a string-to-string map from an archive

I have a CArchive with contains a serialized CMapStringToString. From my research it is my understanding that it is quite ...
2
votes
2answers
76 views

Library to play and create AI for “Connect Four”

I am looking for some advice to this code I made, which enables a fellow programmer to create his own AI for Connect Four whilst not really having to code the game itself. Match class ...
10
votes
3answers
989 views

Implementation of C Standard Library Function ntohl()

This is an implementation of ntohl() that I wrote as an exercise. ntohl() takes a uint32_t ...
3
votes
0answers
27 views

Template class for an Entity Component System library

I'm working on an Entity Component System library. Right know I'm trying to clean up the Entity/Component part (only the code which manage the data). But I have a class which I think is not really ...
2
votes
1answer
26 views

JS micro-view library

I created a JS view micro-library not too long ago it's named contours. Its primary purpose is element creation. It has some similarities to ReactJS. It lacks many features that React has like server ...
3
votes
0answers
48 views

Pitch detection library, basic architecture

I'm a mechanical engineer/amateur programmer trying to learn modern C++. I'm working on a personal project where I'm building a library that uses PortAudio to abstract some basic audio processing, ...
6
votes
1answer
99 views

Designing a toy dependency injection library

Just for learning purpose I thought to write a simple and useful dependency injection service which would just do dependency injection but also it should expose its core too which would let the client ...
3
votes
0answers
44 views

Small JavaScript library for ECMAScript version detection

I wrote a library that detects the version of the ECMAScript that is running on JavaScript, and that also allows to check support for few syntax-features. For the ECMAScript version detection I run 4 ...
0
votes
1answer
41 views

Preferred implementation of `Array<T>::operator=(const Array<T> & rhs)`

I have a custom template class Array<T>, and am currently implementing the assignment operator. However, I've come across a design decision: When assigning ...
0
votes
0answers
14 views

REST request using reactive programming

The following code is an extract of a small library I wrote. Full code is available here. My question is about the following function. I added comments on each state. I'm wondering if I could do ...
5
votes
0answers
39 views

Prerelease code for fingerprint viewing

I wanted to start contributing to the Open Source community, and decided to release some of the Python tools I have written awhile ago. The problem is that I am not really familiar with good practices,...
1
vote
0answers
106 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
27 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 ...
6
votes
1answer
41 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
73 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
104 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 (...
-3
votes
1answer
265 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
119 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
45 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
102 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
47 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
155 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
81 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
73 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
65 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
66 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
76 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
60 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
111 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
69 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
58 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
89 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
39 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 ...
6
votes
2answers
199 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 ...
2
votes
1answer
105 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
369 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
197 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
48 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
159 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 ...
5
votes
0answers
158 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
643 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
408 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 ...