Skip to content

Instantly share code, notes, and snippets.

@zxzcs
zxzcs / actions.md
Last active June 7, 2018 20:44
Actions GraphQL & DynamoBD Schema Contract

DynamoDB Item Schema

Currently we have 5 predefined time range - Last 7, 14, 30, 90 days, and all - so we will have 5 items per pixel per type per subtype

// for type_id - geo (12), segment(13), multiscore (14), and user agent (15)
// for time_range - 0 (all), 7 (last 7 days), 14 (last 14 days), 30 (last 30 days), 90 (last 90 days)
{
  metric_id: 123-7-13-1, // {pixel_id}-{time_range}-{type_id}-{subtype_id}
  pixel_id: 123,
  metrics: {
    18-24: {
@cssoul
cssoul / react-loading.js
Created July 22, 2015 02:48
React Native Loading Animation
/**
* LoadingView
*/
'use strict';
var React = require('react-native');
var {
TouchableWithoutFeedback,
Animated,