Skip to content

Instantly share code, notes, and snippets.

View nerdylocks's full-sized avatar

Abiy Seifu nerdylocks

  • San Francisco, CA
View GitHub Profile
Todo.prototype.addTask = function(date, taskName, callback){
this.model.findOne({
date: date
}, function(error, data) {
var taskId;
if (error) {
console.error('error:findOne:', error); //optional, so helpful during development. it will tell you exactly where there exception happened.
throw new Error(error); //this will make it an instance of the javascript native Error class.
}
var validator = require('validator');
var _ = require('lodash');
var Promise = require('bluebird');
var UInt160 = require('ripple-lib').UInt160;
var RippleRestClient = require('ripple-rest-client');
function RippleQuoteService(options) {
this.logger = options.logger;
this.rippleRestClient = new RippleRestClient({
api: options.rippleRestUrl
'use strict';
var config = require('../config/nconf'),
request = require('request');
var Convert = function(){
this.saneMax = null;
this.saneMin = null;
};