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
yum -y install erlang perl perl-RRD-Simple.noarch perl-Log-Log4perl-RRDs.noarch gnuplot perl-Template-Toolkit | |
wget http://tsung.erlang-projects.org/dist/tsung-1.6.0.tar.gz | |
tar zxfv tsung-1.6.0.tar.gz | |
cd tsung-1.6.0 | |
./configure && make && sudo make install |
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
def curry(function, *curried_args): | |
def curried_method(*args): | |
return function(*(curried_args + args)) | |
return curried_method | |
def hello(firstname, lastname): | |
print "hello %s %s" % (firstname, lastname) | |
hello_mickey = curry(hello, 'Mickey') |