View index.html
<html>
<head>
<title>onpaste</title>
</head>
<body>
<div id="root"></div>
<script>
const log = txt => {
const div = document.createElement('div')
document.body.appendChild(div)
View reboost
#!/usr/bin/env python
# Toss this in your ~/bin/ as ~/bin/reboost and `chmod +x ~/bin/reboost`
"""\
Usage:
reboost [cmd]
Commands:
first - follow upstream until just before master
last - follow downstreams all the way
up - go to parent
View about.md

Here's part of my ~/.gitconfig.global

[user]
	name = Jared Forsyth
...
[alias]
    # View the tree!
    tree = log --oneline --decorate --all --graph
    tr = log --oneline --decorate --all --graph
    t = log --color --date-order --graph --oneline --decorate --simplify-by-decoration --branches
View resultUtils.swift
import * from PackTypes.Result
let module P = PackTypes.Parsing
let rec getChild = (children, mapper) => switch children {
case []: None
case [child ...rest]: switch mapper(child) {
case None: getChild(rest, mapper)
case x: x
}
}
let rec getChildren = (children, mapper) => switch children {
View error.ml
type something = | Something 'a :something;
module type ChildType = {let makeSomething: int => something;};
let module MakeThing (ChildA: ChildType) (ChildB: ChildType) => {
type childArg = | A int | B int;
let doThing arg =>
switch arg {
| A n => ChildA.makeSomething 10
| B n => ChildB.makeSomething 5
View ReactNativeComponent.swift
public class ReactNativeComponent: UIViewController {
let callbacks: [Int]
let properties: [String: AnyObject]
let name: String
init(name: String, properties: [String: AnyObject], callbacks: [Int]) {
self.name = name
self.properties = properties
self.callbacks = callbacks
View codemirror.cljs
(defn code-mirror
"Create a code-mirror editor. The parameters:
value-atom (reagent atom)
when this changes, the editor will update to reflect it.
options
:style (reagent style map)
will be applied to the container element
:js-cm-opts
options passed into the CodeMirror constructor
:on-cm-init (fn [cm] -> nil)
View Document.nm
{
"title": "Demobox",
"created": 1432725699439,
"opened": 1433371827400,
"repl": "null",
"root": {
"id": "bglg05h4fvzbftq2vnwpv3t1lbbb9pjm",
"created": 1432725699462,
"modified": 1432725699462,
"content": "Demobox",
View Jupyter Node Example.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:0ea2bdcaf230dfddec53
import fs from 'fs'
->
import _fs from 'fs'
const fs = _fs