Skip to content

Instantly share code, notes, and snippets.

{
"blockTime": 1651782510,
"meta": {
"err": null,
"fee": 5000,
"innerInstructions": [
{
"index": 1,
"instructions": [
{
kind: PersistentVolume
apiVersion: v1
metadata:
name: storage-0-pv
labels:
type: amazonEBS
spec:
capacity:
storage: 10Gi
storageClassName: default
const onSwipeValueChange = swipeData => {
const { key, value } = swipeData;
rowSwipeAnimatedValues[key].setValue(Math.abs(value));
};
const SwipeButton = ({ data, rowMap }) => (
<Animated.View style={[styles.rowBack,
{
transform: [{ translateX: 100 }]
},
<SwipeRow>
<View style={hiddenRowStyle} />
<View style={visibleRowStyle} />
</SwipeRow>
<SwipeListView
disableRightSwipe
ListHeaderComponent={<Header date={currentDate}/>}
data={scheduledRoutines}
renderItem={ (routine, rowMap) => renderRoutine(routine.item) }
onSwipeValueChange={onSwipeValueChange}
renderHiddenItem={ (data, rowMap) => <SwipeButton data={data} rowMap={rowMap} /> }
rightOpenValue={-100}
/>
@mariusbld
mariusbld / ttt.go
Created December 12, 2017 23:27
Tic Tac Toe
package main
import "fmt"
const BOARD_SIZE = 3
const (
NONE = byte('.')
)