$ python -v
Python 2.7.2
case1:
else: print 1result1:
$ python -v
Python 2.7.2
case1:
else: print 1result1:
| #!/bin/zsh | |
| ## Open file at samba shares (Windows file-sharing) using the file path in windows | |
| ## (for OSX only) | |
| usage() | |
| { | |
| >&2 <<-\HELP | |
| Usage: opensmb '\\fileserver\public\all_your_base_are_belong_to_us.mp3' | |
| HELP |
| *** /data/hoge/huga/local/lib/ruby/gems/1.8/gems/flockdb-0.7.1/lib/flock/service.rb.backup 2012-05-29 17:19:00.000000000 +0900 | |
| --- /data/hoge/huga/local/lib/ruby/gems/1.8/gems/flockdb-0.7.1/lib/flock/service.rb 2012-05-29 17:21:01.000000000 +0900 | |
| *************** | |
| *** 1,6 **** | |
| module Flock | |
| class Service < ThriftClient | |
| ! DEFAULTS = { :transport_wrapper => Thrift::BufferedTransport } | |
| def initialize(servers = nil, options = {}) | |
| if servers.nil? or servers.empty? |
| *** /data/hoge/huga/local/lib/ruby/gems/1.8/gems/flockdb-0.7.1/lib/flock/service.rb.backup 2012-05-29 17:19:00.000000000 +0900 | |
| --- /data/hoge/huga/local/lib/ruby/gems/1.8/gems/flockdb-0.7.1/lib/flock/service.rb 2012-05-29 17:21:01.000000000 +0900 | |
| *************** | |
| *** 1,6 **** | |
| module Flock | |
| class Service < ThriftClient | |
| ! DEFAULTS = { :transport_wrapper => Thrift::BufferedTransport } | |
| def initialize(servers = nil, options = {}) | |
| if servers.nil? or servers.empty? |
| 3c3 | |
| < DEFAULTS = { :transport_wrapper => Thrift::BufferedTransport } | |
| --- | |
| > DEFAULTS = {:transport_wrapper => Thrift::FramedTransport, :connect_timeout => 1 } |
| diff --git a/Library/Formula/avocadodb.rb b/Library/Formula/avocadodb.rb | |
| index 612d816..39205df 100644 | |
| --- a/Library/Formula/avocadodb.rb | |
| +++ b/Library/Formula/avocadodb.rb | |
| @@ -6,14 +6,9 @@ class Avocadodb < Formula | |
| sha1 '99223ea26b679c92ba431a4743a7143dd6a4adf3' | |
| head "https://github.com/triAGENS/AvocadoDB.git" | |
| - depends_on 'libev' | |
| - depends_on 'v8' |
| λ smly@moss:/opt/mnt/hotgraph|master⚡ → python 7:08:02 | |
| Python 2.7.2 (default, Mar 7 2012, 15:34:56) | |
| [GCC 4.2.1 (Apple Inc. build 5664)] on darwin | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> import pymf | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/__init__.py", line 41, in <module> | |
| from .sivm_sgreedy import * | |
| File "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pymf/sivm_sgreedy.py", line 25, in <module> |
| require 'redis' | |
| r = Redis.new | |
| LuaScript = <<EOF | |
| function fib(n) | |
| if n < 2 then return n end | |
| local a = redis.call('hget',KEYS[1],n-1) or fib(n-1) | |
| local b = redis.call('hget',KEYS[1],n-2) or fib(n-2) |
| #include <iostream> | |
| #include <sstream> | |
| #include <vector> | |
| #include <boost/unordered_map.hpp> | |
| #include <boost/unordered_set.hpp> | |
| #include <boost/lexical_cast.hpp> | |
| #include <boost/iterator/iterator_adaptor.hpp> | |
| // #define DEBUG |
| testredis01/0$ redis-cli flushall | |
| OK | |
| testredis01/0$ ./redis-load clients 100 requests 10000000 datasize 32 keyspace 10000000 set 100 | |
| PRNG seed is: 243646450 - use the 'seed' option to reproduce the same sequence | |
| ====== Report ====== | |
| 10000000 requests in 253.451 seconds | |
| 39455.36 requests per second | |
| 100 parallel clients | |
| payload: 32..32 bytes | |
| keep alive: 1 |