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
// Copyright 2022 François-Xavier Bourlet <[email protected]> | |
// Redistribution and use in source and binary forms, with or without modification, are permitted | |
// provided that the following conditions are met: | |
// | |
// 1. Redistributions of source code must retain the above copyright notice, this list of | |
// conditions and the following disclaimer. | |
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of | |
// conditions and the following disclaimer in the documentation and/or other materials | |
// provided with the distribution. | |
// |
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
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
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
#!/usr/bin/env python | |
import zerorpc.gevent_zmq as zmq | |
context = zmq.Context() | |
c = zmq.Socket(context, zmq.XREQ) | |
c.connect('tcp://127.0.0.1:9998') | |
print 'running' |
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
class Speaker | |
{ | |
public: | |
struct Scope | |
{ | |
Scope(bool verbose = false) { resetCounters(); setVerbose(verbose); } | |
~Scope() { printStats(); } | |
}; | |
~Speaker() { speak() << "destructor" << std::endl; ++_counters.dtor; } |