This file contains hidden or 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
| # Install the dynamic library: | |
| # make CLEAN | |
| # make | |
| # LIB_SONAME="libstrtools.so" | |
| # ln -sf $PWD/$LIB_SONAME.1.0 $PERSO_LIB_DIR/$LIB_SONAME | |
| # ln -sf $PWD/$LIB_SONAME.1.0 $PERSO_LIB_DIR/$LIB_SONAME.1 | |
| # C++ compiler | |
| CC = g++ |
This file contains hidden or 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 <cstdlib> | |
| #include <iostream> | |
| #include <iomanip> | |
| #include <vector> | |
| #include<random> | |
| #include<chrono> | |
| typedef unsigned int size_type; |
This file contains hidden or 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 "ColorBar.hpp" | |
| QPen ColorBar::pen(Qt::black, 1, Qt::SolidLine); | |
| ColorBar::ColorBar(QWidget* parent) : QDialog(parent) | |
| { |
This file contains hidden or 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 -*- | |
| """ | |
| ZetCode PyQt5 tutorial | |
| This program centers a window | |
| on the screen. | |
| Author: Jan Bodnar | |
| Website: zetcode.com |
This file contains hidden or 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
| """ | |
| Synopsis: | |
| Run the shell command 'du -h -d 1 /home/user_name/DEV' from a python script. Print the output | |
| Python 3.5 and later | |
| """ | |
| import subrprocess | |
| # Option 1 |
This file contains hidden or 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
| DO | |
| $body$ | |
| BEGIN | |
| IF EXISTS ( | |
| SELECT FROM pg_roles WHERE rolname = 'role_name') THEN | |
| DROP ROLE cba_admin; | |
| END IF; | |
| END | |
| $body$; |
NewerOlder