// Hide keyboard middleware
const keyboardMiddleware = store => next => action => {
// If action is navigate screen
if(action.type == 'NAVIGATE_SCREEN'){
Keyboard.dismiss()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install latest postgresql | |
| sudo yum install postgresql-server postgresql-contrib | |
| # start postgresql | |
| sudo systemctl start postgresql | |
| # change postgres user password | |
| sudo passwd postgres | |
| # create a database and create a new user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style name="AppTheme.ButtonRounded"> | |
| <item name="android:gravity">center_horizontal</item> | |
| <item name="android:background">@drawable/rounded_button_background</item> | |
| <item name="android:padding">8dp</item> | |
| <item name="android:button">@android:color/transparent</item> | |
| </style> |
I hereby claim:
- I am showcheap on github.
- I am showcheap (https://keybase.io/showcheap) on keybase.
- I have a public key whose fingerprint is 014F CF33 2B4A EB23 090C 8A51 5453 347A 134D 846D
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "token_type": "Bearer", | |
| "expires_in": 31536000, | |
| "access_token": "eyJ0eXAiOiJK.......", | |
| "refresh_token": "k3aQ9Hn95........." | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MainActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| } | |
| // Membuat handler click tombol order | |
| public void submitOrder(View view){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo: required | |
| dist: trusty | |
| before_install: | |
| - sudo add-apt-repository --yes ppa:beineri/opt-qt551-trusty | |
| - sudo apt-get update -qq | |
| install: | |
| - sudo apt-get -y install qt55[QTPACKAGE] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service.getRepos("showcheap") | |
| .subscribeOn(Schedulers.newThread()) | |
| .observeOn(AndroidSchedulers.mainThread()) | |
| .subscribe(new Subscriber<List<GithubRepo>>() { | |
| @Override | |
| public void onCompleted() { | |
| } | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repoObservable = Observable.from(listRepo); | |
| repoObservable.subscribe(new Subscriber<GithubRepo>() { | |
| @Override | |
| public void onCompleted() { | |
| Log.d("GithubRepo","Load done"); | |
| } | |
| @Override | |
| public void onError(Throwable e) { |