Skip to content

Instantly share code, notes, and snippets.

View leebyron's full-sized avatar
🌎

Lee Byron leebyron

🌎
View GitHub Profile
@leebyron
leebyron / GraphQL May2021 Changelog.md
Last active May 26, 2021 21:05
GraphQL May2021 Changelog

May2021 Changelog

This describes the set of changes since the last edition of the GraphQL specification, June2018. It's intended to ease the review of changes since the last edition for reviewers or curious readers, but is not normative. Please read the specification document itself for full detail and context.

Authors

@leebyron
leebyron / graphql-tsc-initial-terms.js
Created November 5, 2020 18:48
Assigning terms for initial GraphQL TSC members
// Initial members of the TSC
const members = [
"andimarek",
"benjie",
"dschafer",
"ivangoncharov",
"jbaxleyiii",
"mjmahone",
"nyteshade",
"robzhu",
@leebyron
leebyron / input-union-meeting-2020-5-28.md
Created May 28, 2020 18:54
Input Union Meeting 2020/5/28
var children = []
for (var key in terms) {
if (terms.hasOwnProperty(key)) {
children.push(
<React.Fragment key={key}>
<dl>{key}</dl>
<dd>{terms[key]}</dd>
</React.Fragment>
)
}
@leebyron
leebyron / .flowconfig
Last active July 9, 2018 04:13
flow-implements-bug
We couldn’t find that file to show.
declare function Record(): any
const RecordInstance = Record({
})
class _Foo extends RecordInstance {}
exports.Foo = _Foo
type HasFoo = { kind: "Foo" }
type HasBar = { kind: "Bar", baz: string }
class Other {
baz = "cool"
}
function hasBar(obj: HasFoo | HasBar | Other): boolean %checks {
return obj instanceof Other
@leebyron
leebyron / PriorityQueue.js
Last active January 28, 2019 05:08
PriorityQueue.js uses a binary heap to ensure the highest priority item is always available to dequeue, and sorts on enqueue. A dynamically resizing Array can be used to model the binary heap, for a simpler and more efficient implementation.
/**
* For compare function return:
* - Less than zero: item1 has higher priority than item2.
* - Zero: same.
* - Greater than zero: item1 has lower priority than item2.
*/
export type CompareFunction<T> = (item1: T, item2: T) => number;
export class PriorityQueue<T> {
_items: Array<T>;
@leebyron
leebyron / index.js
Last active August 8, 2017 18:53
requirebin sketch
const Observable = require("zen-observable");
let sink;
const list = [];
const error = new Error();
new Observable(_sink => {
sink = _sink;
return () => list.push('cleanup');
}).subscribe({

Keybase proof

I hereby claim:

  • I am leebyron on github.
  • I am leeb (https://keybase.io/leeb) on keybase.
  • I have a public key ASBnVuESLbEjmR4Ac79vgbgOLVoPtA6GAZSV-MxsHpJ1_Ao

To claim this, I am signing this object: