Skip to content

Instantly share code, notes, and snippets.

View mechazod's full-sized avatar
🎯
Focusing

Mar Mejia mechazod

🎯
Focusing
  • PH, MNL
View GitHub Profile

Sequence

```mermaid
sequenceDiagram
    participant dotcom
    participant iframe
    participant viewscreen
    dotcom->>iframe: loads html w/ iframe url
    iframe->>viewscreen: request template
    viewscreen->>iframe: html & javascript
@mechazod
mechazod / rndispace.txt
Last active May 7, 2020 05:59
Get React Native Available Disk Space
// ios
RNFetchBlob.fs.df().then( response => {
console.log('Free space in bytes: ' + response.free);
console.log('Total space in bytes: ' + response.total);
});
// android
RNFetchBlob.fs.df().then( response => {
console.log('External free space in bytes: ' + response.external_free);
console.log('External total space in bytes: ' + response.external_total);
### Keybase proof
I hereby claim:
* I am mechazod on github.
* I am mejiamariano (https://keybase.io/mejiamariano) on keybase.
* I have a public key ASDWPL8rxgF3ZbdIVEt2CZz-PaTEy-caYpn3Mc_qqQOwqAo
To claim this, I am signing this object:
TOR
http://blog.nparashuram.com/2019/01/react-natives-new-architecture-glossary.html
Explanation of Turbo Modules - How They Do It
https://youtu.be/UcqRXTriUVI?t=1295
// 22/100 SCORE
void swap(int* a, int* b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
}
int segregate(int arr[], int size)
@mechazod
mechazod / kubernetes_commands.md
Created September 14, 2019 17:43 — forked from edsiper/kubernetes_commands.md
Kubernetes Useful Commands
> Task :app:processRndReleaseResources
> Task :app:compileRndReleaseJavaWithJavac
Gradle may disable incremental compilation as the following annotation processors are not incremental: databinding-compiler-3.3.2.jar (androidx.databinding:databinding-compiler:3.3.2).
Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental.
Note: /Nixplay/NixShareModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :app:compileRndReleaseNdk NO-SOURCE
> Task :app:compileRndReleaseSources
PUBNUM - https://www.pubnub.com/
FIREBASE -
TWILIO -
PUSHER
REAMTIMEAPI - https://realtimeapi.io
ABLY - https://www.ably.io/
https://www.slideshare.net/AmazonWebServices/day-5-aws-autoscaling-master-class-the-new-capacity-plan