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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'test' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 verbose run-script [ 'pretest', 'test', 'posttest' ] | |
5 info lifecycle [email protected]~pretest: [email protected] | |
6 silly lifecycle [email protected]~pretest: no script for pretest, continuing | |
7 info lifecycle [email protected]~test: [email protected] | |
8 verbose lifecycle [email protected]~test: unsafe-perm in lifecycle true | |
9 verbose lifecycle [email protected]~test: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/jz/realestate-client/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin |
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
mkdir snapshot-env | |
virtualenv snapshot-env/ | |
cd snapshot-env/ | |
source bin/activate | |
pip install nodeenv | |
nodeenv --node=4.2.6 --prebuilt node/ | |
deactivate | |
git clone https://github.com/prerender/prerender.git | |
source node/bin/activate | |
cd prerender |
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
export PORT=35292 | |
export PRERENDER_SERVICE_URL='http://localhost:35292/' | |
export PHANTOMJS_PORT=35294 | |
export PHANTOM_CLUSTER_NUM_WORKERS=5 | |
export PHANTOM_WORKER_ITERATIONS=10 | |
export CACHE_ROOT_DIR="~/snapshot-env/prerender/filecache/" | |
export CACHE_LIVE_TIME=7200 | |
PHANTOM_CLUSTER_MESSAGE_TIMEOUT=800 | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |
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 node | |
var prerender = require('./lib'); | |
var server = prerender({ | |
workers: process.env.PHANTOM_CLUSTER_NUM_WORKERS, | |
iterations: process.env.PHANTOM_WORKER_ITERATIONS, | |
logRequests: true | |
}); |
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
(snapshot-env)jz@lakka:~/snapshot-env/prerender$ rm -rf node_modules/ | |
(snapshot-env)jz@lakka:~/snapshot-env/prerender$ npm install | |
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade | |
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. | |
> [email protected] install /home/users/jz/snapshot-env/prerender/node_modules/phantomjs-prebuilt | |
> node install.js | |
PhantomJS not found on PATH | |
Download already available at /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 |
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
_xMatrixTransp size = 2,4084 | |
_xMatrix size = 4084 | |
_normalTargetData size = 4084 |
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
$scope.itemMapper = { | |
sizeX: 'window.grid.size.x', | |
sizeY: 'window.grid.size.y', | |
row: 'window.grid.position.row', | |
col: 'window.grid.position.col' | |
}; | |
var emitResize = function($element) { | |
dc.events.trigger( function() { | |
$rootScope.$emit('gridster.resize', $element); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Specs: | |
// - As a default, the colour range should be scaled so, that at least 70% (..ish) of the colour range is available for the data shown. | |
// Example: we have a map with lowest positive correlation at r=0.85 and highest at r=0.99 while the negative correlations span from r=-0.2 to r=-0.35. The desired colour range would then be as follows: | |
// 100% red at r=0.99, | |
// 30% red at r=0.85, | |
// white at r=0, | |
// 30% blue at r=-0.2 and | |
// 100% blue at r=-0.35. | |
function CustomScale() { |
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
var t = beta / _sqrt; | |
console.log("degrees", degrees); | |
console.log("beta", beta, "sqrt", _sqrt); | |
console.log("t=", t, "tprob=", statDist.tprob(degrees, t)); | |
var pvalue = 2 * (1 - statDist.tprob(degrees, t)); | |
console.log("pvalue=", pvalue); | |
Tulosteet ylläolevasta: | |
degrees 82 (program):64 | |
beta 1.0097334538696747 sqrt 0.015688694906613447 (program):65 |
NewerOlder