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
* Detecting system configuration | |
Bash: 5.0.0(1)-release | |
Use ccache: no | |
C++ Compiler: GCC 8.2.1 (/usr/bin/c++) | |
Host System: x86_64-pc-linux-gnu | |
Build System: Linux 4.19.20-1-MANJARO x86_64 | |
Cross-compiling: no | |
Host Operating System: Linux | |
Build Architecture: x86_64 | |
C++11: ok |
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
--- wallpaper.py.old 2017-01-09 11:05:16.554035609 +0300 | |
+++ wallpaper.py 2017-01-09 11:34:56.456909197 +0300 | |
@@ -51,6 +51,15 @@ | |
os.system("xfconf-query -c xfce4-desktop -p " + prop + " -s 'true'") | |
elif de in ["lubuntu", "Lubuntu"]: | |
os.system("pcmanfm -w %s" % path) | |
+ elif de in ["/usr/share/xsessions/plasma"]: | |
+ files = os.listdir(config.walldir) | |
+ for file in files: | |
+ if re.search('wallpaper[0-9]+\.jpg', file) is not None: |
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
COLOR_0=1D1F21 | |
COLOR_1=A54242 | |
COLOR_2=8C9440 | |
COLOR_3=DE935F | |
COLOR_4=5F819D | |
COLOR_5=85678F | |
COLOR_6=5E8D87 | |
COLOR_7=C5C8C6 | |
COLOR_8=373B41 | |
COLOR_9=CC6666 |
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
void printSet(const MyStringSet &s) | |
{ | |
cout << '{'; | |
for(auto iter=s.cbegin(); iter!=s.cend();) | |
{ | |
cout << '"'; | |
cout << *iter; | |
cout << '"'; | |
if(++iter!=s.end()) | |
cout << ", "; |
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
using namespace std; | |
/** | |
* @class MinElementComparison | |
Compare two int lists in the folowing way: | |
Ascending order of their minimum elements | |
*/ | |
struct MinElementComparison{ |
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
std::string decimalToBinary(const std::string &src) | |
{ | |
/* | |
decimalToBinary: returns binary representation of number in src, or Error. | |
*/ | |
istringstream myistream(src); | |
int decRepr = 0; | |
if(!(myistream >> decRepr)) | |
return string("Error!"); |
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
void numbersToBinary(string &src) | |
{ | |
for (string::iterator iter = src.begin(); iter != src.end(); iter++) | |
{ | |
if (isdigit(*iter)) | |
{ | |
string::iterator numberStart = iter++; //numberStart = iter; | |
while (src.end() != iter && (isdigit(*iter))) | |
{ | |
iter++; |
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
using namespace std; | |
void decToBinary_helper(string &str, int dec); | |
std::string decimalToBinary(const std::string &src) | |
{ | |
/* | |
decimalToBinary: returns binary representation of number in src, or Error. | |
*/ | |
istringstream myistream(src); | |
int decRepr = 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
void decToBinary_helper(string &str, int dec); | |
std::string decimalToBinary(const std::string &src) | |
{ | |
/* | |
decimalToBinary: returns binary representation of number in src, or Error. | |
*/ | |
istringstream myistream(src); | |
int decRepr = 0; | |
if(!(myistream >> decRepr)) |
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
void numbersToBinary(string &src) | |
{ | |
for (string::iterator iter = src.begin(); iter != src.end(); iter++) | |
{ | |
if (isdigit(*iter)) | |
{ | |
string::iterator numberStart = iter++; //numberStart = iter; | |
while (src.end() != iter && (isdigit(*iter))) | |
{ | |
iter++; |