is it http or https? - use these adapters
is it not? - pick the first one in the list of 'preferred adapters'
is it http or https? - use these adapters
is it not? - pick the first one in the list of 'preferred adapters'
const common = {} | |
let config = {} | |
export function setup = url => { | |
van: { | |
...common, | |
remoteDbUrl: process.env.REACT_APP_VAN_COUCHDB_URL || 'http://localhost:5984/', | |
dateFormats: { | |
long: 'D MMM, YYYY', | |
week: 'YYYY-[W]WW' |
public save() { | |
let db = this.get_db(); | |
let data = this.get_data(); | |
let t = this; | |
console.log('Save:' + this._id); | |
db.get(this._id, {conflicts: false}) | |
.catch(function (err) { | |
if (err.status === 404) { | |
return {}; // you can just return an empty map if docs not found | |
} |
var webpack = require('webpack') | |
var WebpackDevServer = require('webpack-dev-server') | |
var config = require('./webpack.dev') | |
new WebpackDevServer(webpack(config), { | |
publicPath: config.output.publicPath, | |
hot: true, | |
inline: true, | |
historyApiFallback: true, | |
// It suppress error shown in console, so it has to be set to false. |
Just an idea, to practice after reading about redux async actions and middleware
the important part is this function
let INTERVAL = 50
let runTimer = () => {
return (dispatch, getState) => {
institutet - institutet för högerpolitik,
institutet - en slags dimridå
institutet - för att låtsas att man är många
institutet - när man bara är några få
// https://github.com/eHealthAfrica/kazana-account | |
// this file is found in lib/utils | |
module.exports = addBearerToken; | |
var Wreck = require('wreck'); | |
var _ = require('lodash'); | |
var cookieToToken = require('./cookie-to-token'); | |
var addUserIdAndAgency = require('./add-user-id'); | |
var loadUserDocProperties = require('./load-user-doc-properties'); |
module.exports.getConversationsForUser = function (user, cb) { | |
db.query(function (doc) { | |
emit(doc.author, null); | |
}, {include_docs: true, startkey: user.userId, endkey: user.userId }).then(function (response) { | |
console.log('response', response) | |
cb(null, response) | |
}).catch(function (err) { | |
cb(err) | |
}) | |
} |
{error,on_load_failure} = load_app_module(couch_ejson_compare) | |
2015-07-15 21:06:45.032 [debug] Undefined <0.82.0> Lager installed handler error_logger_lager_h into error_logger | |
2015-07-15 21:06:45.032 [debug] Undefined <0.69.0> Supervisor gr_param_sup started gr_param:start_link(gr_lager_default_tracer_params) at pid <0.84.0> | |
2015-07-15 21:06:45.032 [debug] Undefined <0.68.0> Supervisor gr_counter_sup started gr_counter:start_link(gr_lager_default_tracer_counters) at pid <0.85.0> | |
2015-07-15 21:06:45.032 [debug] Undefined <0.70.0> Supervisor gr_manager_sup started gr_manager:start_link(gr_lager_default_tracer_params_mgr, gr_lager_default_tracer_params, []) at pid <0.86.0> | |
2015-07-15 21:06:45.032 [debug] Undefined <0.70.0> Supervisor gr_manager_sup started gr_manager:start_link(gr_lager_default_tracer_counters_mgr, gr_lager_default_tracer_counters, [{input,0},{filter,0},{output,0}]) at pid <0.87.0> | |
2015-07-15 21:06:45.062 [info] Undefined <0.7.0> Application lager started on node '[email protected]' | |
2015-07-15 21 |
This is an attempt to implement CouchDB checkpoint comparison for PouchDB, to be able to pick up interrupted replications even though checkpoint writing is in an unknown state. Mismatching checkpoints causes replication to start over from change 0
This gist is a request for comments from people familiar with both JS and Erlang, to see if they are functionally identical