Instantly share code, notes, and snippets.

View cell0.js
import { normalize } from 'normalizr';
import ProductDocument from './product-document';
const response = {
documents: [
{ record: { product: { id: 'a' } } },
{ record: { product: { id: 'b' } } },
{ record: { product: { id: 'c' } } }
]
View App.jsx
import React from 'react'
import firebase from 'firebase'
import {liveData, actions} from './storage.js'
import GroupsList from './GroupsList.jsx'
try { firebase.app() } catch (e){
firebase.initializeApp({
apiKey: "AIzaSyBm9oAcCktnQlaxNS1GvyraDGV7QtA6d78",
authDomain: "bastard-183be.firebaseapp.com",
databaseURL: "https://bastard-183be.firebaseio.com",
View untitled.carbide.md
View cell0.js
let str = "date(localdatetime(flags.gears.navigation.start:scenario-scenario11)) = 8"
const operators = ['=', '>=', '>', '<=', '<', '!=']
class FilterExclusionCondition {
constructor() {
this.condition = ''
this._splitConditon = []
}
View cell0.js
const a = "03E8"//.split('').reverse().join('')
const b = "ff9c"//.split('').reverse().join('')
// Functions
let tohx = s => parseInt(s, 16)
let twos = s => s.split('').map(c => (15 - tohx(c)).toString(16)).join('')
let ttwos = s => twos(twos(s))
let twosinc = s => (tohx(twos(s)) + 1).toString(16)
let pad = s => ("0000" + s).slice(-a.length)
// Pad with F if inverted
View untitled.carbide.md
View Creating a Youtube Widget.carbide.md