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
startup_message off | |
defscrollback 100000 | |
hardstatus on | |
hardstatus alwayslastline | |
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %S %{..Y} %Y-%m-%d %c" |
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 python3 | |
import csv | |
import codecs | |
import requests | |
class CNB: | |
'''CNB CSV dialect''' |
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
/** | |
* @brief Generic Python-to-C++ exception translator | |
* Caller provides C++ exception class, callback(), list of Python exceptions, | |
* which should be be handled and optional parameters to callback | |
* | |
* @param callback object, usually python function, lambda function, functor, std::bind expression or std::function | |
* @param exceptions list of python exceptions, e.g. { PyExc_ValueError, PyExc_TypeError } | |
* @param params optional parameters to callback() | |
* @return decltype - return value of the callback() | |
* |