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
| import time | |
| import urllib2 | |
| import threading | |
| from Queue import Queue | |
| from random import choice | |
| def get_random_article(namespace=None): | |
| """ Download a random wikipiedia article""" | |
| try: |
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
| RUNTEST=python -m unittest -v -b | |
| ALLMODULES=$(patsubst %.py, %, $(wildcard test_*.py)) | |
| all: | |
| ${RUNTEST} ${ALLMODULES} | |
| % : test_%.py | |
| ${RUNTEST} test_$@ |
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
| CXX=`root-config --cxx` | |
| CXXFLAGS=`root-config --cflags` | |
| LDFLAGS=`root-config --ldflags` | |
| LDLIBS=`root-config --glibs` | |
| ROOTLIBS='-lRooFit -lHtml -lMinuit -lRooFitCore -lRooStats -lHistFactory' | |
| # Assumes that the script is in MyScript.C | |
| # and it must contain a main() function |
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
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
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 <stdexcept> | |
| class my_custom_exception : public std::runtime_error { | |
| public: | |
| my_custom_exception(const std::string& msg):std::runtime_error(msg){}; | |
| }; |
NewerOlder