Listing Terms and Acronyms in Text or LaTeX using bash

I often need to check for inconsistent capitalization in my tex files. So listing all the consecutive capitalized words and characters helps me to decide which one is intentional capitalization and which one is not. The following bash script has two functions can lists all terms (Capitalized Phrase) and acronyms used throughout the input file.

1
2
3
4
5
6
7
8
9
10
$ terms filename.tex 
19 Cloud Station
9 Sensor Gateway
7 Sensor Cloud Infrastructure
...
$ acronyms filename.tex
34 VM
13 IaaS
13 CPU
...
Read more

Rumal a header only HTML/CSS/Javascript Generator C++ library

Rumal is a C++ library that can generate HTML/CSS/Javascript code from significantly identical C++ syntax.
Currently it uses std::string which is supposed to be replaced with compile time strings. Injecting placeholders, is also planned but not yet implemented.
This will make it usable as a template engine.

1
2
3
4
5
std::cout << 
div(_id(42) / _class("test"),
span(_id(43) / _class("test"), "Hello"),
span("World")
);
Read more

Tash (ট্যাঁশ) an Open Source C++ library for ArangoDB and AQL

I am working on Tash which is an Open Source C++ library for ArangoDB Database which includes APIs for HTTP based document access and a query builder for AQL (Arango Query Language). These are a few example usages.

1
2
3
4
5
6
7
8
std::string name = "Hijibijbij";
tash::shell shell("school");
shell << select("s").in("students")
/ filter((clause("s.name") == name) && (clause("s.fathers_name") == name))
/ sort().asc("s._key")
/ yield("s");
nlohmann::json result;
shell >> result;

The above generates an equivalent AQL and execute it over the arangodb connection

tashgoru

Read more

Mathematica++ a C++ library that speaks Mathematica

1
2
3
4
5
6
7
8
symbol x("x");
value res;
std::string method = "Newton";

shell << Values(FindRoot(ArcTan(1000 * Cos(x)), List(x, 1, 2), Rule("Method") = method));
shell >> res;
std::vector<double> results = cast<std::vector<double>>(res);
std::cout << results[0] << std::endl; // Prints 10.9956

Mathematica++ A C++ library that speaks Mathematica.

Read more