I hereby claim:
- I am marclar on github.
- I am marclar (https://keybase.io/marclar) on keybase.
- I have a public key ASCEzH8oVGapuQwYtMCHiI-KX-iEZrWY6hXLgfyH5I9Bjgo
To claim this, I am signing this object:
var mongodb = require('mongodb'); | |
var mongoose = require('mongoose'); | |
var id = '51a11f2d4da20b020000000a'; | |
var mongooseId = new mongoose.Types.ObjectId(id); | |
var mongoId = new mongodb.ObjectID(id); | |
var logs = []; | |
if(mongoId == mongooseId){ | |
logs.push('mongoId == mongooseId'); | |
} | |
else{ |
//Add "ifok" function | |
global.ifok = function(args, msg, cb){ | |
var me = this; | |
args = Array.prototype.slice.call(args); | |
var err = args.shift(); | |
var log = (me.log || console.log); | |
//You can comment out a log message by adding a space at the beginning | |
if(msg.length && msg.charAt(0) === ' '){ | |
msg = null; |
//Assuming "app.io" is your socket.io object.... | |
app.io.configure(function (){ | |
//On handshake, | |
app.io.set('authorization', function (handshake, accept) { | |
//Require headers | |
if(handshake.headers){ |
var myApp = angular.module('myApp').config(function($httpProvider) { | |
$httpProvider.defaults.headers.post['X-CSRFToken'] = $('input[name=csrfmiddlewaretoken]').val(); | |
}); |
### Keybase proof | |
I hereby claim: | |
* I am marclar on github. | |
* I am marclar (https://keybase.io/marclar) on keybase. | |
* I have a public key whose fingerprint is 544C 62DF 992B 7384 65ED D227 C62E 5BEB A128 AC5A | |
To claim this, I am signing this object: |
import superagent from 'superagent'; | |
export default function loadInfo() { | |
return new Promise((resolve) => { | |
superagent.get(config.remoteApiBase + '/info').then( (res) => { | |
resolve(res.body); | |
}, (err) => { | |
reject(err); | |
}); |
import * as actions from 'redux/modules/content/page'; | |
import {page} from 'redux/modules/content'; | |
import {load as getPage} from 'redux/modules/content/page'; | |
@connect( | |
state => ({ | |
page: state.content.page.data, | |
error: state.content.page.error, | |
loading: state.content.page.loading |
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "*** lambdas", | |
"Parameters": { | |
"aaLambdaRoleArn": { | |
"Type": "String", | |
"Default": "***" | |
} | |
}, | |
"Resources": { |
I hereby claim:
To claim this, I am signing this object:
Might be good to establish some best practices for common blockchain / smart contract scenarios.
bit clone
, bit add @
, bit commit -m "Sending to
, bit push
. Important to have lots of autocomplete and help - see Keybase for a good CLI example.