How to have a simple debian repository to offer your packages.
You probably have them already installed
- Python (I used 2.7).
- dpkg-scanpackages:
sudo apt-get install dpkg-dev - gzip:
sudo apt-get install gzip
| FROM httpd:2.4-alpine | |
| COPY index.html /var/www/html/ | |
| WORKDIR /var/www/html | |
| CMD ["apachectl", "-D", "FOREGROUND"] | |
| EXPOSE 80 |
| #include <exception> | |
| class Test { | |
| Test() = default; | |
| public: | |
| static Test& instance() { | |
| static Test single; | |
| return single; | |
| } |
| #include <cmath> | |
| #include <iostream> | |
| #include <locale> | |
| #include <sstream> | |
| bool checkFloatParse() | |
| { | |
| constexpr double number = 1.5; | |
| constexpr auto numberString = "1.5"; |
| // Example program | |
| #include <iostream> | |
| #include <string> | |
| #include <tuple> | |
| #include <sstream> | |
| template<class Tuple, std::size_t N> | |
| struct TupleReader { | |
| static void set(std::stringstream& ss, Tuple& t) | |
| { |
| #How to generate debian for package foobar | |
| # Need to have install pip package stdeb | |
| PKG=foobar | |
| pip install -d . $PKG | |
| tar xfvz $PKG*.tar.gz | |
| cd $PKG* | |
| python setup.py --command-packages=stdeb.command bdist_deb | |
| #Debian is generated within deb_dist directory |
The instructions are based on this answers.ros.org thread.
You may need the latest pip, follow the official instructions.
Install bloom:
| import sys | |
| import cv2 as cv | |
| import numpy as np | |
| argvs=sys.argv | |
| if (len(argvs) != 2): | |
| print(f'Usage: {argvs[0]} image_file') | |
| quit() | |
| image_file_name = argvs[1] |
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| cout << "Hello World!" << '\n'; | |
| #ifdef __linux__ | |
| cout << "Linux and Linux-derived" << '\n'; | |
| #endif |
| #include <iostream> | |
| #include <string> | |
| #define DefineClassName(className) \ | |
| \ | |
| template<> \ | |
| std::string Base::name<className>() \ | |
| { \ | |
| return #className; \ | |
| } \ |