Skip to content

Instantly share code, notes, and snippets.

@florimm
florimm / Frame.js
Created December 12, 2017 22:06 — forked from robertgonzales/Frame.js
Use React portals to render inside shadow dom and iframes
class Frame extends Component {
componentDidMount() {
this.iframeHead = this.node.contentDocument.head
this.iframeRoot = this.node.contentDocument.body
this.forceUpdate()
}
render() {
const { children, head, ...rest } = this.props
return (
@florimm
florimm / BasePipelineTypes.cs
Created August 16, 2018 22:10 — forked from jermdavis/BasePipelineTypes.cs
An example of strongly typed data pipelines, with some trivial examples
using System;
namespace StronglyTypedPipelines
{
/// <summary>
/// Base type for individual pipeline steps.
/// Descendants of this type map an input value to an output value.
/// The input and output types can differ.
/// </summary>