I hereby claim:
- I am peterj on github.
- I am peterj (https://keybase.io/peterj) on keybase.
- I have a public key ASBVqcnsOsFuaLoqTSmaYjbWPbnfJ0hcBMnasetTKZPivwo
To claim this, I am signing this object:
#!/bin/bash | |
targetBranch="master" | |
origin=$(git remote get-url origin) | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
prurl="$origin/pullrequestcreate?sourceRef=$branchName&targetRef=$targetBranch" | |
open $prurl |
I hereby claim:
To claim this, I am signing this object:
const STRIPE_KEY="sk_test_STRIPE_KEY"; | |
const configureStripe = require('stripe'); | |
const stripe = configureStripe(STRIPE_KEY); | |
stripe.charges.create(req.body, function (err, res) { | |
if (err) { | |
context.res = { status: 400, body: err}; | |
} else { | |
context.res = { status: 200, body: res }; | |
} |
const stripe = require('stripe')('sk_STRIPE_KEY'); | |
stripe.charges.create({ | |
description: 'charge description', | |
source: 'token_id', | |
currency: 'USD', | |
amount: 999 | |
}, (err, res) => { | |
// send success/error response back | |
}); |
<ul> | |
</nav> | |
</dl> | |
aliqua. Ut | |
uat.</dd> | |
<ul> | |
aliqua. Ut </dl> |
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
class Link extends Component { | |
render() { | |
return ( | |
<div> | |
<div> | |
{this.props.link.description} ({this.props.link.url} -{' '} | |
{this.props.link.hash}) |
import React, { Component } from 'react'; | |
import Link from './Link'; | |
const ALL_LINKS = [ | |
{ | |
id: '1', | |
hash: 'ABC', | |
url: 'http://google.com', | |
description: 'Google shortlink', | |
}, |
import React, { Component } from 'react'; | |
import LinkList from './components/LinkList'; | |
class App extends Component { | |
render() { | |
return <LinkList />; | |
} | |
} | |
export default App; |
import React, { Component } from 'react'; | |
import Link from './Link'; | |
import gql from 'graphql-tag'; | |
import { graphql } from 'react-apollo'; | |
const ALL_LINKS_QUERY = gql` | |
query AllLinksQuery { | |
allLinks { | |
id |
import React, { Component } from 'react'; | |
class CreateShortLink extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
description: '', | |
url: '', | |
}; | |
} |