Call actions on stores RESTfully:
// C
BotActions.save(null, {name: 'Curly', age: 26}); // POST a model without an id
// R
BotActions.fetch(); // GET the whole Collection
BotActions.fetch(2); // GET a single model by id
import { createRafDriver, ISheet, val } from '@theatre/core' | |
import WebMMuxer from 'webm-muxer' | |
export const rafDriver = createRafDriver({ name: 'Hubble rAF driver' }) | |
export const useRenderer = ({ | |
sheet, | |
fps = 30, | |
bitrate = 1e6, | |
}: { |
const fs = require('node:fs'); | |
const cp = require('node:child_process'); | |
const path = require('node:path'); | |
const { optimize } = require('svgo'); | |
const renderSvg = require('lottie-to-svg'); | |
const paper = require('paper'); | |
const { JSDOM } = require('jsdom'); | |
const svgFlatten = require('svg-flatten'); |
.env | |
node_modules/ | |
*.png |
// Welcome! require() some modules from npm (like you were using browserify) | |
// and then hit Run Code to run your code on the right side. | |
// Modules get downloaded from browserify-cdn and bundled in your browser. | |
const React = require('react'); | |
const ReactDOM = require('react-dom'); | |
let interval | |
const COUNT = 20 |
import supercluster from 'supercluster' | |
import tilebelt from 'tilebelt' | |
import { max } from 'd3-array' | |
import db from './db' | |
import getMarkers from './markers' | |
const MIN_ZOOM = 1 | |
const MAX_STATE_ZOOM = 7 | |
const MAX_COUNTY_ZOOM = 9 |
Call actions on stores RESTfully:
// C
BotActions.save(null, {name: 'Curly', age: 26}); // POST a model without an id
// R
BotActions.fetch(); // GET the whole Collection
BotActions.fetch(2); // GET a single model by id
node_modules | |
out.js* |
# Get a notification when a user starts and stops typing on the passed-in `el`. | |
# | |
# Based on https://github.com/narfdotpl/jquery-typing | |
module.exports = (el, {delay, start, stop}) -> | |
delay ||= 400 | |
typing = false | |
timeout = null |
ReactDOM = require 'react/lib/ReactDOM' | |
ReactElement = require 'react/lib/ReactElement' | |
ReactElementValidator = require 'react/lib/ReactElementValidator' | |
SVGDOMPropertyConfig = require 'react/lib/SVGDOMPropertyConfig' | |
MUST_USE_ATTRIBUTE = DOMProperty.injection.MUST_USE_ATTRIBUTE | |
createFactory = if __DEV__ | |
ReactElementValidator.createFactory | |
else | |
ReactElement.createFactory |
var defaults = function(obj, source) { | |
for (var prop in source) { | |
if (obj[prop] === undefined) obj[prop] = source[prop]; | |
} | |
return obj; | |
} | |
var stringifyGETParams = function(url, data) { | |
var query = ''; | |
for (var key in data) { |