Skip to content

Instantly share code, notes, and snippets.

View c4milo's full-sized avatar
:octocat:

Camilo Aguilar c4milo

:octocat:
View GitHub Profile
camilo@macbooksito:~/Development/skywriter$ hg status
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial@selenic.com
** Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3]
** Mercurial Distributed SCM (version 1.6)
** Extensions loaded: rebase
Traceback (most recent call last):
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
diff --git a/lib/jake.js b/lib/jake.js
index ee15998..60dd85d 100644
--- a/lib/jake.js
+++ b/lib/jake.js
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/*
- * Node-Jake JavaScript build tool
+ * Node-Jake JavaScript build tool
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
var fs = require('fs');
var path = require('path');
var sys = require('sys');
var EventEmitter = require('events').EventEmitter;
var mkpath = function mkpath(_path, callback) {
var self = this;
var dirs = _path.split('/');
var d = './';
var entry = -1;
var fs = require('fs');
var path = require('path');
var sys = require('sys');
function copytree(src, dst) {
if(!path.existsSync(src)) {
throw new Error(src + ' does not exists. Nothing to be copied');
}
if(!fs.statSync(src).isDirectory()) {
var path = require('path');
var fs = require('fs');
var sys = require('sys');
var EventEmitter = require('events').EventEmitter;
var copy = function copy(src, dst, callback) {
var self = this;
self.on('error', function(err) {
callback(err);
@c4milo
c4milo / copy.js
Created September 8, 2010 00:24
// fs.copy(src,dst) && fs.copySync(src,dst)
var copy = function copy(src, dst, callback) {
var self = this;
if(!callback) {
callback = function(){};
}
self.on('error', function(err) {
module.exports = 'hola'
camilo@imacsita:~> sudo curl http://npmjs.org/install.sh | sh
Password:
Sorry, try again.
Password:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 338 100 338 0 0 2703 0 --:--:-- --:--:-- --:--:-- 8450
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 568k 100 568k 0 0 583k 0 --:--:-- --:--:-- --:--:-- 583k
var files = [];
var wf_rlevel = 0;
util.walkfiles = function(_path, filter) {
if(fs.statSync(_path).isFile()) {
throw new Error(_path + ' is a file. You should provide a directory path');
}
if(!filter) {
filter = '.*';
}
module.exports = {
'should lookup a domain by id': function(assert) {
},
'should create a persistent Domain from its JSON Description': function(assert) {
},
'should return the id': function(assert) {