React Communicating between Parent and Child Component

App.tsx

components/Home.tsx

References https://github.com/mhdr/ReactJSSamples/tree/master/009

Continue reading »

React Stateless Components

App.tsx

components/Home.tsx

References https://github.com/mhdr/ReactJSSamples/tree/master/008

Continue reading »

Configure git difftool and mergetool with Meld

or edit ~/.gitconfig References https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration http://stackoverflow.com/questions/6412516/configuring-diff-tool-with-gitconfig http://stackoverflow.com/questions/34119866/setting-up-and-using-meld-as-your-git-difftool-and-mergetool

Continue reading »

Android Transition animations between activities

MainActivity.java

AnimatedActivity.java

References https://github.com/mhdr/AndroidSamples/tree/master/059 https://developer.android.com/training/animation/cardflip.html

Continue reading »

Android Working with Snackbar

build.gradle

MainActivity.java

Snackbar Actions

References https://github.com/mhdr/AndroidSamples/tree/master/058 https://spin.atomicobject.com/2017/07/10/android-snackbar-tutorial/

Continue reading »

Android Working with Floating Action Button

build.gradle

/res/layout/activity_main.xml

MainActivity.java

Refereneces https://github.com/mhdr/AndroidSamples/tree/master/057 https://www.youtube.com/watch?v=nt31X9RaHQU&index=3&list=PLBA5zvAwnCrAG1ghh1XRsTN-Fqh3uKpli

Continue reading »

Android Floating Label with TextInputLayout

build.gralde

/res/layout/activity_main.xml

References https://github.com/mhdr/AndroidSamples/tree/master/056

Continue reading »

Tuning the Linux kernel for better shadowsocks network throughput

add these lines to /etc/sysctl.conf :

References https://shadowsocks.org/en/config/advanced.html https://linode.com/docs/networking/vpn/create-a-socks5-proxy-server-with-shadowsocks-on-ubuntu-and-centos7/ https://maxlv.net/optimize-a-shadowsocks-server/

Continue reading »

Tuning the Linux kernel for better network throughput

add these lines to /etc/sysctl.conf :

and then :

References http://www.techrepublic.com/blog/linux-and-open-source/tuning-the-linux-kernel-for-more-aggressive-network-throughput/ https://wwwx.cs.unc.edu/~sparkst/howto/network_tuning.php https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Web_Platform/5/html/Administration_And_Configuration_Guide/jgroups-perf-udpbuffer.html http://www.nateware.com/linux-network-tuning-for-2013.html http://www.slashroot.in/linux-network-tcp-performance-tuning-sysctl

Continue reading »

Android Animating ListView with LayoutTransition

MainActivity.java

References https://github.com/mhdr/AndroidSamples/tree/master/055

Continue reading »
1 2 3 5