Skip to content

Instantly share code, notes, and snippets.

@0xjocke
0xjocke / README.md
Created December 14, 2017 04:20
Chord diagram
@0xjocke
0xjocke / README.md
Last active December 14, 2017 04:18
Chord diagram d3 v4

Keybase proof

I hereby claim:

  • I am bachstatter on github.
  • I am bachstatter (https://keybase.io/bachstatter) on keybase.
  • I have a public key ASDul4lHHRyBblMBKnvJSVmMcQbr-ZCp1I3hZtRqqunXOwo

To claim this, I am signing this object:

import { get } from 'lodash'
// add second argument to get() where default is wanted
const parsePayment = (payment) => {
const payerInfo = get(payment, ['payer', 'payer_info'])
const item = get(payment, 'transactions[0]')
return {
id: payment.id,
created: moment(payment.create_time).format('X'),
email: get(payerInfo, ['email']),
firstName: get(payerInfo, ['first_name']),
import { get } from 'lodash'
// add second argument to get() where default is wanted
const parsePayment = (payment) => {
const payerInfo = get(payment, ['payer', 'payer_info'])
const item = get(payment, 'transactions[0]')
return {
id: payment.id,
created: moment(payment.create_time).format('X'),
email: get(payerInfo, ['email']),
firstName: get(payerInfo, ['first_name']),