Created
January 9, 2014 08:18
-
-
Save joeyhacker/8331011 to your computer and use it in GitHub Desktop.
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 dao = require('../dao'); | |
/*dao.getSnippet('517f52b5a387f28417000001', function(doc){ | |
console.log(doc); | |
});*/ | |
/* | |
dao.createSnippet({ | |
title: 'Test2', | |
content: 'System.out.println("Hello world !")', | |
creator: 'Admin', | |
type: 'java' | |
});*/ | |
/*dao.createSnippet({ | |
title: 'Test2', | |
content: 'alert("Hello world !")', | |
creator: 'Admin', | |
type: 'js' | |
});*/ | |
/*dao.createSnippet({ | |
title: 'Test3', | |
content: 'print "hello world !"', | |
creator: 'Admin', | |
type: 'python' | |
});*/ | |
/*dao.getSnippets(0, 20, { | |
tagId: '517c8c541863fe6022000001' | |
}, function(err, docs){ | |
console.log(docs); | |
});*/ | |
/*count.count({}, function(err, count){ | |
console.log(count); | |
});*/ | |
/* | |
dao.createUser({ | |
username: 'admin', | |
password: '123456' | |
}); | |
dao.getUserByUsername('admin', function(err, doc){ | |
console.log(doc); | |
}); | |
*/ | |
/*dao.createTag({ | |
parentId: '5167ab9740eff80828000001', | |
name: '/', | |
desc: '' | |
});*/ | |
/*dao.createTag({ | |
parentId: '517c8c541863fe6022000001', | |
name: 'Java----1231231', | |
desc: 'xxx---xxxx' | |
});*/ | |
/*dao.createTag({ | |
name: 'Linux指令', | |
desc: 'xxx', | |
parentId: '517c8c0aa035d22028000001' | |
}); | |
dao.createTag({ | |
name: '常用', | |
desc: 'xxx', | |
parentId: '517c8c0aa035d22028000001' | |
});*/ | |
/*dao.createTag({ | |
parentId: '517c7dc5da68895416000003', | |
name: '常用123', | |
desc: 'xxx' | |
}); | |
/*dao.createTag({ | |
name: 'Root', | |
userId: '5167ab9740eff80828000001' | |
});*/ | |
/*dao.createSnippet({ | |
title: 'sdfadf1', | |
content: 'asdfasdfasf1', | |
creator: 'admin', | |
lang: 'linux', | |
tagId: '517c7dc5da68895416000003' | |
}); | |
dao.createSnippet({ | |
title: 'dsfsadf2', | |
content: 'asdfasdfasf2', | |
creator: 'admin', | |
lang: 'linux', | |
tagId: '517c7dc5da68895416000003' | |
}); | |
dao.createSnippet({ | |
title: 'sadfasdf3', | |
content: 'asdfasdfasf3', | |
creator: 'admin', | |
lang: 'linux', | |
tagId: '517c7dc5da68895416000003' | |
});*/ | |
/*dao.getTags('5167ab9740eff80828000001', function(str){ | |
console.log(str); | |
});*/ | |
/*dao.moveSnippet('51876f10291d8aa820000002', '517f713e7600d7e016000001', function(){ | |
console.log('ok ...'); | |
});*/ | |
/*dao.passwd('admin', '654321', function(){ | |
console.log('ok'); | |
});*/ | |
dao.getSharedTag(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment