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
| """ | |
| Random Number generator for tsv format data. | |
| Calling method: 'python tsvdatagen.py <rows> <columns> <outputfilename.ext>' | |
| Arguments: | |
| """ |
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
| var newdata; | |
| var scope = new Object(); | |
| scope.marginleft = 400; | |
| scope.marginright = 80; | |
| scope.margintop = 300; | |
| scope.marginbottom = 80; | |
| scope.width = 1200; | |
| scope.height = 1100; | |
| scope.showlabels = true; |
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
| (function(){function a(a){var b=a.source,d=a.target,e=c(b,d),f=[b];while(b!==e)b=b.parent,f.push(b);var g=f.length;while(d!==e)f.splice(g,0,d),d=d.parent;return f}function b(a){var b=[],c=a.parent;while(c!=null)b.push(a),a=c,c=c.parent;return b.push(a),b}function c(a,c){if(a===c)return a;var d=b(a),e=b(c),f=d.pop(),g=e.pop(),h=null;while(f===g)h=f,f=d.pop(),g=e.pop();return h}function g(a){a.fixed|=2}function h(a){a!==f&&(a.fixed&=1)}function i(){j(),f.fixed&=1,e=f=null}function j(){f.px=d3.event.x,f.py=d3.event.y,e.resume()}function k(a,b,c){var d=0,e=0;a.charge=0;if(!a.leaf){var f=a.nodes,g=f.length,h=-1,i;while(++h<g){i=f[h];if(i==null)continue;k(i,b,c),a.charge+=i.charge,d+=i.charge*i.cx,e+=i.charge*i.cy}}if(a.point){a.leaf||(a.point.x+=Math.random()-.5,a.point.y+=Math.random()-.5);var j=b*c[a.point.index];a.charge+=a.pointCharge=j,d+=j*a.point.x,e+=j*a.point.y}a.cx=d/a.charge,a.cy=e/a.charge}function l(a){return 20}function m(a){return 1}function o(a){return a.x}function p(a){return a.y}function q(a,b,c) |
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
| sudo apt-get update | |
| sudo apt-get upgrade | |
| #Version Control | |
| sudo apt-get install -y git gitk xxdiff | |
| #Python Stuff | |
| sudo apt-get install -y python ipython-notebook ipython python-numpy python-scipy python-matplotlib python-dev python-sphinx python-setuptools nose | |
| sudo apt-get install -y gfortran openmpi-bin liblapack-dev | |
| sudo apt-get install -y xxdiff |
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
| function [ tlc , error ] = block_matching(target, reference, error_func) | |
| dims = size(reference); | |
| target_size = size(target); | |
| range = [dims(1)-target_size(1), dims(2)-target_size(1) ]; | |
| zeroes = zeros(range); | |
| for i=1:range(1) |
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
| var events = require('events'), | |
| util = require('util'); | |
| var bufferDataEmitter = function(stream){ | |
| var self = this; | |
| events.EventEmitter.call(self) | |
| var buffer = []; | |
| stream.on('data', function(chunk){ |
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
| var events = require('events'), | |
| util = require('util') | |
| var readableStreamAccumulator = function (readableStream){ | |
| var self = this | |
| events.EventEmitter.call(self) | |
| self.cache = [] |
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
| d3.custom = {} | |
| d3.custom.histogram = function module() { | |
| var width = 600, | |
| height = 600, | |
| margin = { | |
| top: 10, | |
| bottom: 10, | |
| left: 10, | |
| right: 10, |
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
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| gbower = require('gulp-bower'), | |
| bower = require('bower'), | |
| fs = require('fs'), | |
| del = require('del'); | |
| gulp.task('default', ['test'], function(){ | |
| return | |
| }) |
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
| var configString = head + body + footer | |
| var buffer = new Buffer(configString) | |
| var file = new gutil.File({contents:buffer, path:'karma.config.js'}) | |
| function readableWrapper(params, options){ | |
| Readable.call(this, options) | |
| this._params = params |
OlderNewer