Skip to content

Instantly share code, notes, and snippets.

View bySabi's full-sized avatar

bySabi Files bySabi

  • Alicante, España
View GitHub Profile
@bySabi
bySabi / gist:a4f5999693d5e1ebfa86a7a7987afc05
Created May 6, 2016 10:15
Minimal higher order React Component
```
const hoc = C => class _hoc extends React.Component {
render() {
return <C { ...this.props }/>;
}
}
const hoc = C => function _hoc(props) {
return <C { ...props }/>;
@bySabi
bySabi / Event-stream based GraphQL subscriptions.md
Created May 11, 2016 20:13 — forked from OlegIlyenko/Event-stream based GraphQL subscriptions.md
Event-stream based GraphQL subscriptions for real-time updates

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

@bySabi
bySabi / github.css
Created November 29, 2019 10:22 — forked from tuzz/github.css
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: