Skip to content

Instantly share code, notes, and snippets.

View hellendag's full-sized avatar

Isaac Hellendag hellendag

  • Dagster Labs
  • Minneapolis, MN
View GitHub Profile
@hellendag
hellendag / mergeResolvers.js
Last active November 20, 2023 19:16
Merge mocked GraphQL resolvers
// @flow
type ResolvedScalar = string | number | boolean | null;
type ResolvedValue =
| ResolvedScalar
| Array<ResolvedValue>
| {[key: string]: ResolvedValue};
type ResolverFunction = (...args: Array<any>) => ResolvedValue;
export type ResolverMap = {
@hellendag
hellendag / gist:6cd425613caabb7f238d
Created February 26, 2016 04:03
Drag/Drop Example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Draft • Decorators</title>
<link rel="stylesheet" href="../../dist/Draft.css" />
</head>
<body>
<div id="target"></div>
<script src="../../node_modules/react/dist/react.js"></script>