Loading about.md +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ Sharing code is a good thing, and it should be _really_ easy to do it. A lot of times, I want to show you something I'm seeing - and that's where we use pastebins. Haste is the prettiest, easist to use pastebin ever made. Haste is the prettiest, easiest to use pastebin ever made. ## Basic Usage Loading lib/document_stores/file.js +2 −2 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ FileDocumentStore.prototype.set = function(key, data, callback, skipExpire) { try { var _this = this; fs.mkdir(this.basePath, '700', function() { var fn = _this.basePath + '/' + _this.md5(key); var fn = _this.basePath + '/' + FileDocumentStore.md5(key); fs.writeFile(fn, data, 'utf8', function(err) { if (err) { callback(false); Loading @@ -46,7 +46,7 @@ FileDocumentStore.prototype.set = function(key, data, callback, skipExpire) { // Get data from a file from key FileDocumentStore.prototype.get = function(key, callback, skipExpire) { var _this = this; var fn = this.basePath + '/' + this.md5(key); var fn = this.basePath + '/' + FileDocumentStore.md5(key); fs.readFile(fn, 'utf8', function(err, data) { if (err) { callback(false); Loading Loading
about.md +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ Sharing code is a good thing, and it should be _really_ easy to do it. A lot of times, I want to show you something I'm seeing - and that's where we use pastebins. Haste is the prettiest, easist to use pastebin ever made. Haste is the prettiest, easiest to use pastebin ever made. ## Basic Usage Loading
lib/document_stores/file.js +2 −2 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ FileDocumentStore.prototype.set = function(key, data, callback, skipExpire) { try { var _this = this; fs.mkdir(this.basePath, '700', function() { var fn = _this.basePath + '/' + _this.md5(key); var fn = _this.basePath + '/' + FileDocumentStore.md5(key); fs.writeFile(fn, data, 'utf8', function(err) { if (err) { callback(false); Loading @@ -46,7 +46,7 @@ FileDocumentStore.prototype.set = function(key, data, callback, skipExpire) { // Get data from a file from key FileDocumentStore.prototype.get = function(key, callback, skipExpire) { var _this = this; var fn = this.basePath + '/' + this.md5(key); var fn = this.basePath + '/' + FileDocumentStore.md5(key); fs.readFile(fn, 'utf8', function(err, data) { if (err) { callback(false); Loading