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)

8
votes
2answers
89 views

Library for the Summary API (used to get summaries of webpages)

I was wondering if I could get some pointers on how I can improve my library, whether it be design pattern/naming convention/or any ideas on a better implementation. GitHub As it stands, I am using ...
3
votes
0answers
23 views

ThorsSQL Lib: Part 3: Layer 5 HandShake

Have a working version of MySQL implementation of ThorsSQL library done. If you want to check it out you can find the whole thing on github ThorsSQL. This is a follow on to previous code Reviews: ...
3
votes
0answers
23 views

ThorsSQL Lib: Part 3: Layer 4

Have a working version of MySQL implementation of ThorsSQL library done. If you want to check it out you can find the whole thing on github ThorsSQL. This is a follow on to previous code Reviews: ...
5
votes
0answers
35 views

ThorsSQL Lib: Part 3: Layer 3

Have a working version of MySQL implementation of ThorsSQL library done. If you want to check it out you can find the whole thing on github ThorsSQL. This is a follow on to previous code Reviews: ...
3
votes
0answers
24 views

ThorsSQL Lib: Part 3: Layer 2

Have a working version of MySQL implementation of ThorsSQL library done. If you want to check it out you can find the whole thing on github ThorsSQL. This is a follow on to previous code Reviews: ...
10
votes
0answers
53 views

ThorsSQL Lib: Part 3: Layer 1

Have a working version of MySQL implementation of ThorsSQL library done. If you want to check it out you can find the whole thing on github ThorsSQL. This is a follow on to previous code Reviews: ...
3
votes
1answer
45 views

All combinations of 2-value variables

Introduction This code was part of one of my projects where it was used to generate boolean input values for truth tables. I have since generalized it for combinations of variables with only 2 values,...
5
votes
1answer
77 views

Wrapping libusb library in C++

I want to use libusb library in my C++ application. I have created classes which wraps libusb functions. You can see that libusb API is split into 8 sections: http://libusb.sourceforge.net/api-1.0/...
10
votes
1answer
110 views

Lightweight asynchronous event library in C - Threadpool module

I have finished writing a C library whose purpose is to provide a simple API for asynchronously executing functions, waiting for events on file descriptors and waiting for timeouts. The whole library ...
4
votes
1answer
42 views

Implementing printf to a string by calling vsnprintf twice

I'm experimenting with writing a dynamic string library in C, and I decided to write an implementation of sprintf. In my code, I call vsnprintf with a buffer of 0 ...
5
votes
0answers
42 views

Concatenating strings into a fixed-size char array in C

Using the standard C library, I want to repeatedly concatenate onto a fixed size string. Despite it's promising name, the semantics of strncat do not appear suited ...
1
vote
1answer
63 views

Date class for Budgeting App

This is a Date class I made for a hobby project. It does not deal with time at all; that is, the smallest unit of time it considers is one day, and no concern with time zones. Where I do most of my ...
1
vote
0answers
33 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 ...
11
votes
0answers
98 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 <...
0
votes
0answers
25 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 ...
5
votes
1answer
105 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
89 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
81 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
1k 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
33 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
28 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
59 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
55 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
45 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
22 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
42 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
113 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
32 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
45 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
81 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
118 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
277 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
182 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
50 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
125 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
103 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
50 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
203 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
95 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
80 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
72 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
70 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
80 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
61 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
119 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
74 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
64 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
92 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 ...