Skip to content

Instantly share code, notes, and snippets.

View quangdh's full-sized avatar

Huy Quang quangdh

View GitHub Profile
@quangdh
quangdh / gist:6df9fc1f094400f00cbfbd52fc48c386
Created November 30, 2018 07:59
React Native Change Default iOS Simulator Device

These are the available devices for iOS 12.0:

react-native run-ios --simulator="iPhone 5s"
react-native run-ios --simulator="iPhone 6"
react-native run-ios --simulator="iPhone 6 Plus"
react-native run-ios --simulator="iPhone 6s"
react-native run-ios --simulator="iPhone 6s Plus"
react-native run-ios --simulator="iPhone 7"
react-native run-ios --simulator="iPhone 7 Plus"
@quangdh
quangdh / codepush.md
Last active May 6, 2021 02:48
Tổng hợp các lệnh Code Push cơ bản

TỔNG HỢP CÁC LỆNH CODEPUSH CLI CƠ BẢN

Nhóm lệnh cơ bản

Login vào tài khoản AppCenter

code-push login

Logout tài khoản AppCenter

code-push logout

Xem đang login vào tài khoản AppCenter nào

code-push whoami

Tổng hợp các lệnh về vi

Hiện number line

:set number or : set nu

Đưa con trỏ về cuối file

:$

@quangdh
quangdh / MainActivity.java
Last active September 21, 2015 06:37
Capture the 'virtual keyboard show/hide' event in Android
public class MainActivity extends Activity
implements ResizeRelativeLayout.OnResizeLayout{
//...
private ResizeRelativeLayout layout;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContainView(R.layout.activity_main);
//...