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
[hadoop@ip-172-31-14-239 ~]$ cd pypy2-v5.7.0-src | |
[hadoop@ip-172-31-14-239 pypy2-v5.7.0-src]$ python rpython/bin/rpython -Ojit --make-jobs=4 pypy/goal/targetpypystandalone.py | |
[translation:info] 2.7.12 (default, Sep 1 2016, 22:14:00) | |
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] | |
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown' | |
[translation:info] Translating target as defined by pypy/goal/targetpypystandalone | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -Wno-address /tmp/usession-release-pypy2.7-v5.7.0-2/gcctest.c -o /tmp/usession-release-pypy2.7-v5.7.0-2/gcctest.o | |
[platform:execute] gcc /tmp/usession-release-pypy2.7-v5.7.0-2/gcctest.o -pthread -Wl,--export-dynamic -lrt -o /tmp/usession-release-pypy2.7-v5.7.0-2/gcctest | |
[platform:execute] gcc -c -O3 -pthread -fomit-frame-pointer -Wall -Wno-unused -Wno-address /tmp/usession-release-pypy2.7-v5.7.0-2/gcctest.c -o /tmp/usession-release-pypy2.7-v5.7.0-2/gcctest.o | |
[platform:execute] gcc /tmp/usession-release- |
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 (c) 2007-2016 Pivotal Software, Inc. | |
%% You may use this code for any purpose. | |
-module(rabbit_exchange_type_x_features_worker). | |
-include_lib("rabbit_common/include/rabbit.hrl"). | |
-include_lib("rabbit_common/include/rabbit_framing.hrl"). | |
-behaviour(rabbit_exchange_type). | |
-export([description/0, serialise_events/0, route/2]). | |
-export([validate/1, validate_binding/2, |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Mathieu Blondel, October 2010 | |
import numpy as np | |
from numpy import linalg | |
def linear_kernel(x1, x2): | |
return np.dot(x1, x2) | |
def polynomial_kernel(x, y, p=3): | |
return (1 + np.dot(x, y)) ** p |