- hackmd version: https://hackmd.io/Iwe0MVlwRpOMZ70W1ZwPtQ?view
- gist version: https://gist.github.com/bluet/5ebdfb65f486e01c13175dcdedf27906
[TOC]
This is a HOWTO for database record/value version control, not for schema.
import React from 'react' | |
import { StyleSheet } from 'react-native' | |
import Animated, { | |
Extrapolate, | |
interpolate, | |
useAnimatedStyle | |
} from 'react-native-reanimated' | |
import { colors, metrics } from 'styles'; | |
function clamp(value, lowerBound, upperBound) { |
const fs = require("fs"); | |
const faker = require('faker'); | |
const TOTAL = 10_000; | |
const generateRandomMetadata = () => { | |
return { | |
name: faker.name.findName(), | |
description: faker.lorem.sentences(), | |
image: faker.image.avatar() | |
} |
import React from 'react' | |
import { StyleSheet } from 'react-native' | |
import Animated, { | |
Extrapolate, | |
interpolate, | |
useAnimatedStyle | |
} from 'react-native-reanimated' | |
import { colors, metrics } from 'styles'; | |
function clamp(value, lowerBound, upperBound) { |
import React, { useState, useRef, useContext, useCallback } from 'react'; | |
import { Dimensions, View, Animated } from 'react-native'; | |
import { TabView } from 'react-native-tab-view'; | |
import { TabScreen } from './Tab'; | |
import { CustomTabBar } from './TabBar'; | |
import { ThemeContext } from 'react-native-elements'; | |
import { useHeaderHeight } from '@react-navigation/stack'; | |
const AnimatedHeader = ({ style, content }) => { | |
return <Animated.View style={style}>{content}</Animated.View>; | |
}; |
const THREE = require('three'); | |
const { createCanvas, loadImage } = require('canvas') | |
const { Blob, FileReader } = require('vblob'); | |
// Patch global scope to imitate browser environment. | |
global.window = global; | |
global.Blob = Blob; | |
global.FileReader = FileReader; | |
global.THREE = THREE; |
[TOC]
This is a HOWTO for database record/value version control, not for schema.
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>method</key> | |
<string>ad-hoc</string> | |
<key>uploadBitcode</key> | |
<false/> | |
<key>uploadSymbols</key> | |
<true/> |
const TimeDisplay = withTime(props => ( | |
<Eink | |
mode={Modes.DU} | |
render={memo(() => ( | |
<Layout width={12}> | |
<UIText variant="copy" align="center" lineHeight={FONT_SIZES['copy']}> | |
{props.time} | |
</UIText> | |
</Layout> | |
))} |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>compileBitcode</key> | |
<true/> | |
<key>destination</key> | |
<string>export</string> | |
<key>method</key> | |
<string>ad-hoc</string> |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_web: |