Skip to content

Instantly share code, notes, and snippets.

const HOSTNAME = "<OUTLINE SERVER>";
const API_TOKEN = "<API TOKEN>";
// Authenticate
const headers = {
"content-type": "application/json",
Authorization: `Bearer ${API_TOKEN}`,
};
// Create a user
import {
Stack,
Table,
Title,
TextInput,
useComponentState,
Card,
Markdown,
Button,
} from "@airplane/views";
This Contributor License Agreement (“Agreement”) is entered into between General Outline, Inc., a Delaware corporation (“Outline,” “we” or “us” etc.) and you (as defined and further identified below). Accordingly, you hereby agree to the following terms for your present and future contributions submitted to Outline:
Definitions:
1. (a) “You” (or “your”) shall mean the contribution copyright owner (whether an individual or organization) or legal entity authorized by the copyright owner that is making this Agreement with Outline.(b) “Contribution(s)” shall mean the code, documentation or other original works of authorship, including any modifications or additions to an existing work, submitted by you to Outline for inclusion in, or documentation of, any of the products or projects owned or managed by Outline (the “work(s)”). For the purposes of this definition, “submitted” means any form of electronic, verbal, or written communication sent to Outline or its representatives, including but not limited to communi
Process: Electron [7810]
Path: /Users/USER/*/Electron.app/Contents/MacOS/Electron
Identifier: com.github.electron
Version: 2.0.0 (2.0.0)
Code Type: X86-64 (Native)
Parent Process: ??? [7338]
Responsible: Electron [7810]
User ID: 501
Date/Time: 2018-02-27 11:09:17.119 -0800
// @flow
import React from 'react';
import Icon from './Icon';
import type { Props } from './Icon';
export default function CheckboxIcon({
checked,
...rest
}: Props & { checked: boolean }) {
return (
@tommoor
tommoor / unroll.md
Last active January 25, 2019 11:59
Unroll.me

An analogy.

You hire a cleaner (Unroll.me) to come and clean your house (gmail), you give them a key (oauth) so that they can clean when you're not there. Later, It turns out that when they've been in your house they were looking through all your private draws and selling the information they found to the highest bidder.

Does that seem cool? Is it what you were expecting them to do?

@tommoor
tommoor / index.js
Last active October 31, 2018 19:07
requirebin sketch
const React = require('react');
const ReactDOM = require ('react-dom');
const Render = require('react-emoji-render');
// try swapping the commented lines below and hit "Run Code" in the top right
// to see another rendering style!
const Emoji = Render.Emojione;
//const Emoji = Render.Twemoji;

Keybase proof

I hereby claim:

  • I am tommoor on github.
  • I am tommoor (https://keybase.io/tommoor) on keybase.
  • I have a public key ASCzvZRSFWUFalNPKsZJo2x82_HXhhaZvKHtGhRsBmy-UAo

To claim this, I am signing this object:

{
"id": "56350d79653535000d1d0000",
"event": "channel.created",
"created_at": "2015-11-09T19:29:05",
"params": {
"id": "5640f4023139651b21020000",
"name": null,
"path": "meeting",
"public": true,
"public_url": "https://speak.io/meeting",
@tommoor
tommoor / copy-modules.js
Created October 1, 2015 14:12
NPM3 Electron Grunt
var exec = require('child_process').exec;
var chalk = require('chalk');
var path = require('path');
var _ = require('underscore');
var fs = require('fs-extra');
module.exports = function(grunt) {
var getModuleKeys = function(data) {
var list = [];