This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A simple Lexer meant to demonstrate a few theoretical concepts. It can | |
// support several parser concepts and is very fast (though speed is not its | |
// design goal). | |
// | |
// J. Arrieta, Nabla Zero Labs | |
// | |
// This code is released under the MIT License. | |
// | |
// Copyright 2018 Nabla Zero Labs | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- coding:utf-8; mode:c++; mode:auto-fill; fill-column:80; -*- | |
/// @file cascade-classifier.cpp | |
/// @brief OpenCV object recognition example. | |
/// @author J. Arrieta <juan.arrieta@nablazerolabs.com> | |
/// @date October 04, 2017 | |
/// @copyright (c) 2017 Nabla Zero Labs | |
/// @license MIT License. | |
/// | |
/// I wrote this example program for my later reference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- coding:utf-8; mode:c++; mode:auto-fill; fill-column:80; -*- | |
/// @file sha256.cpp | |
/// @brief Calculate and display the SHA-256 hash of a list of files. | |
/// @author J. Arrieta <Juan.Arrieta@nablazerolabs.com> | |
/// @date October 10, 2017 | |
/// @copyright (c) 2017 Nabla Zero Labs | |
/// @license MIT License | |
/// | |
/// Compiled in macOS High Sierra 10.13 (previous installation of OpenSSL 1.1.0). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cerrno> | |
#include <cstdio> | |
#include <cstring> | |
#include <sstream> | |
#include <chrono> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- coding:utf-8; mode:c++; mode:auto-fill; fill-column:80; -*- | |
/// @file color.hpp | |
/// @brief Output stream manipulators to add ANSI console colors. | |
/// @author J. Arrieta <Juan.Arrieta@nablazerolabs.com> | |
/// @date March 14, 2017 | |
/// @copyright (c) 2017 Nabla Zero Labs | |
/// | |
/// This code is released under The MIT License | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""spk.py | |
This is an example meant to demonstrate how could one work directly | |
with SPICE SPK files in their original DAF format. | |
It can correctly compute the position and velocity provided by Type II | |
and Type III ephemerides. As a basis for comparison it calculates the | |
states of the Galilean satellites for a relatively large number of | |
epochs and compares it agains CSPICE (which you need to have available | |
as a shared library if you want to run the test case, but you don't |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// clang-format off | |
/* | |
Basic example showing how could one implement a table-driven state machine in | |
C++. | |
Suppose one has a lamp which can be in one of three states: "Off", "On", | |
"Blink". At any time and via some mechanism, the lamp can trigger two events: | |
"Switch Off" or "Switch On". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A test of python | |
print "Hello World!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
#include <iostream> | |
#include <map> | |
#include <numeric> | |
#include <set> | |
#include <vector> | |
using Graph = std::vector<std::set<int>>; | |
using Coloring = std::vector<int>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Educational implementation of a k-d tree. | |
#include <algorithm> | |
#include <array> | |
#include <iostream> | |
#include <random> | |
#include <stdexcept> | |
#include <string> | |
#include <vector> |
NewerOlder