Skip to content

Instantly share code, notes, and snippets.

View joshbalfour's full-sized avatar

Josh Balfour joshbalfour

View GitHub Profile
@merunga
merunga / Comment.graphql
Created April 11, 2018 12:19
serverless-appsync-plugin codegen
type Comment {
_id: String!
# The comment's content.
content: String!
# The comment timestamp. This field is indexed to enable sorted pagination.
createdAt: String!
}
type Mutation {
# Comment on an event.
@Polidoro
Polidoro / AudioPlayer.jsx
Last active September 25, 2016 13:08 — forked from gaearon/AudioPlayer.jsx
React <audio> wrapper
/** @jsx React.DOM */
var AudioPlayer = React.createClass({
propTypes: {
source: React.PropTypes.string.isRequired,
isPlaying: React.PropTypes.bool.isRequired,
defaultTime: React.PropTypes.number,
onProgress: React.PropTypes.func.isRequired,
onTimeUpdate: React.PropTypes.func.isRequired,
onEnd: React.PropTypes.func.isRequired