Here is a small list of interesting fact about React Native, as used inside PlantNet Mobile apps for Android & iOS, 6 million users
This is a work in progress and is completed as time flies
- Fast refresh is so good
- a big community
- fast to dev
import React, { useState } from 'react' | |
import { View, Text, TouchableOpacity, ActivityIndicator, StyleSheet } from 'react-native' | |
import { Svg, Path } from 'react-native-svg' | |
import { sha256 } from 'react-native-sha256' | |
import { Buffer } from 'buffer' | |
const AltchaLogo = () => ( | |
<Svg width={24} height={24} viewBox="0 0 20 20" fill="none"> | |
<Path | |
d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 15.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" |
blueprint: | |
name: ZHA - Tuya 4-Button Switch | |
description: Automate your Tuya 4-Button Switch using ZHA events. | |
domain: automation | |
input: | |
tuya_4button_switch: | |
name: Tuya 4-Button Switch | |
description: Tuya 4-Button Switch to use | |
selector: | |
device: |
blueprint: | |
name: Tuya Zigbee 4 button remote | |
description: "Blueprint for use with Tuya Zigbee 4 button remote (TS0044_1) on Zigbee2MQTT" | |
domain: automation | |
input: | |
switch: | |
name: Tuya Zigbee 4 button remote | |
description: Tuya Zigbee 4 button remote to use | |
selector: | |
entity: |
blueprint: | |
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for media_player | |
description: Control the volume of the media player and set play/pause on it | |
domain: automation | |
source_url: https://gist.github.com/HugoGresse/552c494b33b2b35c4c5903f7ef28cd42 | |
input: | |
remote: | |
name: Remote | |
description: Moes Tuya Smart Knob Device to use | |
selector: |
const runInParallel = async (dataList, numberOfParallelRequest, runFunction) => { | |
return new Promise((resolve) => { | |
const isRunCompleted = (runStatus) => { | |
return Object.values(runStatus).every(status => status === false) | |
} | |
const dataListSplit = splitArray(dataList, numberOfParallelRequest) | |
console.log('dataListSplit', dataListSplit.length) |
/* | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
When trying to connect to Unify Network Controller interface, it was not responding.
Checking the port with netstat showed the service was not started but service unify status
reported the contrary.
Device: RPi 3 with 16gb storage
java JDK not up to date on latest raspbian image for a long time
#!/bin/bash | |
usage() { | |
echo "Usage:" | |
echo " adbx proxy set" | |
echo " adbx proxy get" | |
echo " adbx proxy remove" | |
} | |