curl -i -H "Accept: application/json" -X PUT -d "" http://localhost:5984/chatbot/
curl -X GET http://localhost:5984/chatbot/_all_docs?include_docs=true
| var _missing= function(data){ return React.DOM.pre(null, "Route not found: "+ data.route) }, | |
| _router= null, | |
| _started= false, | |
| _nextId= 1; | |
| function handleRouteChange(container, component) { | |
| var routeParams= Array.prototype.slice.call( arguments, 1 ) | |
| React.renderComponent( | |
| component({ routeParams:routeParams }, null), | |
| container |
curl -i -H "Accept: application/json" -X PUT -d "" http://localhost:5984/chatbot/
curl -X GET http://localhost:5984/chatbot/_all_docs?include_docs=true
| 'use strict'; | |
| var babel = require('babel-core'); | |
| var fs = require('fs'); | |
| // borrowed from https://github.com/babel/babel-jest/blob/master/index.js | |
| require.extensions['.jsx'] = function (module, filename) { | |
| var src = fs.readFileSync(filename, 'utf8'); | |
| // Allow the stage to be configured by an environment | |
| // variable, but use Babel's default stage (2) if |
| import java.util.*; | |
| class AList{ | |
| public static void main(String args[]){ | |
| /* Array list extends Abstract List implements List interface. | |
| * Array list supports dynamic Arrays that can grow as needed | |
| * Array list can dynamically increase and decrease in size | |
| * It is of variable length | |
| */ | |
| //Array list declaration |
| var currencyValidator = { | |
| format: function (number) { | |
| return (Math.trunc(number * 1000000000000) / 1000000000000).toFixed(2) | |
| }, | |
| parse: function (newString, oldNumber) { | |
| var CleanParse = function (value) { | |
| return { value: value } | |
| } | |
| var CurrencyWarning = function (warning, value) { | |
| return { |
| var gulp = require('gulp'), | |
| sass = require('gulp-sass'), | |
| browserify = require('gulp-browserify'), | |
| concat = require('gulp-concat'), | |
| embedlr = require('gulp-embedlr'), | |
| refresh = require('gulp-livereload'), | |
| lrserver = require('tiny-lr')(), | |
| express = require('express'), | |
| livereload = require('connect-livereload') | |
| livereloadport = 35729, |
| grep -r --color --exclude-dir={custom,lib,scripts} --exclude={*.xml,error_log} "beta" . |
| /*! ****************************** | |
| Handlebars helpers | |
| *******************************/ | |
| // debug helper | |
| // usage: {{debug}} or {{debug someValue}} | |
| // from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/) | |
| Handlebars.registerHelper("debug", function(optionalValue) { | |
| console.log("Current Context"); | |
| console.log("===================="); |