Skip to content

Instantly share code, notes, and snippets.

import React from 'react'
import PropTypes from 'prop-types'
import {
controller,
AnimatedValue,
createAnimatedComponent,
SpringAnimation,
config,
} from 'react-spring'
import * as _ from 'lodash'
import React from 'react'
import PropTypes from 'prop-types'
import {
controller,
AnimatedValue,
createAnimatedComponent,
SpringAnimation,
config,
} from 'react-spring'
User.homeDocument.getChildrenStream().subscribe(x => console.log('done', x))
Processing: i5557z2caw:1500447342160
Subscriber {closed: false, _parent: null, _parents: null, _subscriptions: Array(1), syncErrorValue: null…}
documents: i5557z2caw:1500447342160 (7) [RxDocument, RxDocument, RxDocument, RxDocument, RxDocument, RxDocument, RxDocument]
Getting childs for: 06hfxakxcy:1500516727785
Processing: 06hfxakxcy:1500516727785
Getting childs for: 1btrmkd5qz:1500518892760
Processing: 1btrmkd5qz:1500518892760
Getting childs for: 4cx050ynfd:1500516607679
Processing: 4cx050ynfd:1500516607679
import state from '../state'
import { t, options, exprStatement, nodeToStr } from './helpers'
import hash from 'hash-sum'
// splits styles into static/dynamic pieces
export function extractAndAssign(node, file) {
// if array of objects
if (t.isArrayExpression(node.right)) {
return getArrayStatics(node, file)
}
@natew
natew / config.js
Created January 19, 2017 19:28
patch config.js
'use strict';
const parse_yes_no_option = require('./parse_yes_no_option');
const NiceError = require('./nice_error.js');
const fs = require('fs');
const url = require('url');
const toml = require('toml');
const chalk = require('chalk');
{
"data": {
"get": {
"getDimensions": {
"lows": "[[null,null],[-1.5896538496,1.42131984234],[-1.59024405479,1.42128765583],[-1.59193897247,1.42103493214],[-1.59193098545,1.42079949379],[-1.60010409355,1.42653727531],[-1.59683990479,1.42475187778],[-0.222584158182,-0.503785014153],[-0.218509122729,-0.506726443768],[0.463188052177,-1.20419502258],[-0.216254755855,-0.508005559444],[-1.88223266602,1.60256564617],[-1.082924366,0.409523248672],[-0.273515462875,-0.561486005783],[-1.84869134426,1.54470205307],[-1.07305586338,0.40146163106],[-1.06311476231,0.393994688988],[0.453633099794,-1.28270220757],[-0.254591584206,-0.576505601406],[-1.58123731613,1.42022931576],[-0.210219934583,-0.509812355042],[0.485451281071,-1.21823740005],[0.516267478466,-1.24821436405],[0.411454707384,-1.28829181194],[0.417188256979,-1.29346489906],[0.375967681408,-1.25528919697],[0.376130640507,-1.25581371784],[-0.300871729851,-0.564482271671],[-1.82346487045,1.48116350174],[-1.07748162746,0.414052993059],[-1.0755376815
<VictoryChart
height={height}
width={width}
>
<VictoryArea
animate={{ duration: 100 }}
interpolation="stepAfter"
style={{
data: {
fill: '#fff178',
{
"Profiles": [
{
"Link Color" : {
"Red Component" : 0.5272001028060913,
"Color Space" : "Calibrated",
"Blue Component" : 0.9352657198905945,
"Alpha Component" : 1,
"Green Component" : 0.7122980356216431
},
import Database from '$stores/db'
import Select from 'react-select'
import * as T from '../../types'
type HeaderState = { value: number }
type PropsState = { data: { items: Array<T.ItemEntry> } }
@Database.provide()
@component
export default class Header {
'use strict'
/* @flow */
import { Emitter, CompositeDisposable } from 'sb-event-kit'
import { getRandomInt } from '$helpers.js'
import type { Disposable } from 'sb-event-kit'
type Config = {
host: string
}