I hereby claim:
- I am christiannwamba on github.
- I am codebeast (https://keybase.io/codebeast) on keybase.
- I have a public key ASBKNY2Uu6AUXzp4Dlwhir4rpkEZ8QR-9F4QNh8lD4k5tgo
To claim this, I am signing this object:
var client = deepstream('APP--URL') | |
// Login | |
client.login() | |
client.rpc.make( 'price-chart', { }, ( err, results ) => { | |
var dataPoints = results; | |
console.log(dataPoints) | |
var chart = new CanvasJS.Chart("chartContainer", { |
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
// === Arrays | |
var [a, b] = [1, 2]; | |
console.log(a, b); | |
//=> 1 2 | |
// Use from functions, only select from pattern | |
var foo = () => [1, 2, 3]; |
{ | |
"name": "pushertableinrealtime", | |
"version": "1.0.0", | |
"description": "\"\"", | |
"main": "app.js", | |
"scripts": { | |
"test": "\"echo \\\"Error: no test specified\\\" && exit\" " | |
}, | |
"repository": { | |
"type": "git", |
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var Pusher = require('pusher'); | |
var pusher = new Pusher({ |
I hereby claim:
To claim this, I am signing this object:
import React, { Component } from 'react'; | |
export default function withPropsChecker(WrappedComponent) { | |
return class PropsChecker extends Component { | |
componentWillReceiveProps(nextProps) { | |
Object.keys(nextProps) | |
.filter(key => { | |
return nextProps[key] !== this.props[key]; | |
}) | |
.map(key => { |
/** | |
* Contructor Function to Class | |
*/ | |
// BEFORE | |
function Team(name) { | |
this.name = name; | |
this.count = 14 | |
} |
const fetch = require('node-fetch'); | |
const bcrypt = require('bcrypt'); | |
module.exports = async function(context, req) { | |
const HASURA_OPERATION = ` | |
mutation insertUser($username:String, $password:String) { | |
insert_user(objects: {username: $username, password: $password}) { | |
affected_rows | |
} | |
} |
const fetch = require("node-fetch") | |
const HASURA_OPERATION = ` | |
mutation insertUser($username:String, $password:String) { | |
insert_user(objects: {username: $username, password: $password}) { | |
affected_rows | |
} | |
} | |
`; |