How to send messages from React Native code to the page loaded into WebView and back.
How to detect Bluetooth headset connection/disconnection events and the headset name in React Native applications in Android and iOS.
A brief tutorial on how to render custom UI componenets inside the chat messages if you use Gifted Chat library for React Native.
How to access AWS DynamoDB tables from Amplify Lambda Function: access policy configuration and resolving Dynamo table names.
Many applications require unauthorized/guest user accounts with (probably limited) access to server resources.
Amplify allows guest access but what if you need full-featured Cognito records for such users? What if you would want them to be converted later to the full accounts and keep user preferences and other associated server resources?
To rollback the last commit:
git reset HEAD~
It will revert your last commit. Your changes will stay locally so you are safe.
My Mac has quite a small internal SSD and I use an external SSD to keep my source code.
Once you checkout your git repository to the external drive you might notice that all files are now marked as modified. If you do git diff you will see something like this:
One of our Flask-Admin pages became very slow recently and I had to investigate the reason.
The page contains a custom Flask-Admin
ModelView whish shows some data filtered
by the certain criteria. The underlaying table is quite large so it could be the
reason why the page is slow.
a, *b, c = [1, 2, 3, 4, 5] # b gets [2, 3, 4]
I was recently looking for a sample how to use PubNub with custom React hooks and I didn’t find any complete example. Some of them were missing important details which I had to figure out later by myself. So here is a brief tutorial.
This article gives you a way to convert your tree of React Context Provider components into a flat structure.
How to classify images from your webcam in the browser without a server using TensorFlow.js and WebRTC.
curl -L https://get.rvm.io | bash -s stable rvm install ruby-2.6.3 rvm use ruby-2.6.3 sudo gem install jekyll
If you get
AAPT: error: resource android:attr/colorError not found in your React Native Android build, add the following
code into your
How to create a Chrome extension to connect Bluetooth devices using Web Bluetooth API.