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
sudo make install | |
! [ -d .git ] || git submodule update --init | |
node cli.js install -g | |
semver@1.0.2 /usr/local/lib/node_modules/npm/node_modules/semver | |
npm ERR! error installing npm@1.0.0rc3 Error: Refusing to delete non-npm file (override with --force) | |
npm ERR! error installing npm@1.0.0rc3 at clobberFail (/home/dave/npm/lib/utils/rm-rf.js:59:12) | |
npm ERR! error installing npm@1.0.0rc3 at /home/dave/npm/lib/utils/rm-rf.js:80:42 | |
npm ERR! error installing npm@1.0.0rc3 at /home/dave/npm/lib/utils/rm-rf.js:68:12 | |
npm ERR! error installing npm@1.0.0rc3 at cb (/home/dave/npm/lib/utils/graceful-fs.js:31:9) | |
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm.js |
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
DAVID-A-EDELHARTs-MacBook-Pro:farnsworth bingomanatee$ node index.js | |
looking for universe universeA | |
/Users/bingomanatee/Documents/node/farnsworth/node_modules/universes.js : returning universe universeA : | |
/Users/bingomanatee/Documents/node/farnsworth/index.js : person fry , name: fry of A | |
/Users/bingomanatee/Documents/node/farnsworth/index.js : person leela , name: leela of A | |
/Users/bingomanatee/Documents/node/farnsworth/index.js : person professor , name: professor of A | |
/Users/bingomanatee/Documents/node/farnsworth/index.js ... they have 1 universes | |
looking for universe universeB | |
/Users/bingomanatee/Documents/node/farnsworth/node_modules/universes.js : returning universe universeB : | |
/Users/bingomanatee/Documents/node/farnsworth/index.js ... and here is universeB : |
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
rails generate scaffold Foo name: string | |
`to_specs': Could not find rails (>= 0) amongst [rake-0.8.7, rake-0.8.7, rubygems-update-1.8.4] (Gem::LoadError) | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec' | |
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1182:in `gem' | |
from /usr/local/bin/rails:18 |
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 models_module = require(MVC_MODELS); | |
var Gate = require('util/gate'); | |
var map_reduce = require('./zoom_back_map_reduce'); | |
function _zoom(err, map_coords_model, map_id, map_data, map_mode, callback) { | |
console.log(__filename, ': _zoom() ##################'); | |
// var args = Array.prototype.slice.call(arguments, 0); | |
// console.log('arguments: ', args); | |
//FIRST ACTION : knock all the zooms back one | |
try { |
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 fs = require('fs'); | |
// read mars data at http://pds-geosciences.wustl.edu/geo/mgs-m-mola-5-megdr-l3-v1/mgsl_300x/meg004/megt90n000cb.img | |
var data = fs.readFileSync(__dirname + '/megt90n000cb.img', 'binary'); | |
if (Buffer.isBuffer(data)){ | |
console.log('data is buffer'); | |
} else { | |
console.log('data is not buffer'); | |
var buffer = new Buffer(data, 'binary'); |
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
mm = require(MVC_MODELS); | |
var Mola = require('mola'); | |
var scale = require('mola/scale'); | |
var path_module = require('path'); | |
var bin = require('util/binary'); | |
var fs = require('fs'); | |
var Gate = require('util/gate'); | |
/** | |
* the Gate class calls the callback passed to its constructor | |
* when the number of task_start() calls equals the number of task_done() calls. |
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
class MyDialog extends EditorWindow { | |
@MenuItem("Terrain/Dialog Test") | |
static function ShowWindow() { | |
var window:MyDialog = EditorWindow.GetWindow(MyDialog); | |
} | |
static function load_section(){ | |
print('load section'); | |
} |
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
/** | |
* scale = 128 | |
* i_limit = c.5600 | |
* j_limit = c.11000 | |
*/ | |
for (var i = 0; i < i_limit; i += scale) | |
for (var j = 0; j < j_limit; j += scale) { | |
// if (i > i_limit) continue; | |
// if (j > j_limit) continue; | |
var heights = _chunk(image_data, i, i + scale, j, j + scale); |
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
{ "img_ref" : { | |
"$ref" : "mapimage", | |
"$id" : "4e454599f404e8d51c000002" | |
}, | |
"scale" : 128, "image" : "4e454599f404e8d51c000002", "tile_i" : 0, "tile_j" : 9, "w" : 9, "e" : 10, "n" : 0, "s" : 0, | |
"heights" : [ | |
[ | |
0, | |
2, | |
0, |
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
from fabric.api import * | |
import agi_config | |
import fab_lib | |
# these lists are populated with 'username@hostname' strings by prep_hosts() | |
ast_hostnames_as_root = [] | |
ast_hostnames_as_tyger = [] | |
agi_hostnames_as_root = [] | |
agi_hostnames_as_tyger = [] |
OlderNewer