Skip to content

Instantly share code, notes, and snippets.

🤔
To be or not to be

Raymond Chan am5a03

🤔
To be or not to be
  • Hong Kong
Block or report user

Report or block am5a03

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@am5a03
am5a03 / github_multiple-accounts.md
Created Feb 14, 2019 — forked from JoaquimLey/github_multiple-accounts.md
How to Work with GitHub and Multiple Accounts
View github_multiple-accounts.md

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

View gist:2e6915ab36c2088cdeb7ca0ab0da7854
<LinearLayout
android:width="wrap_content"
android:height="wrap_content"
android:descendantFocusability="false"
android:orientation="vertical">
<PostView ... />
<PublisherAdView ... />
</LinearLayout>
View keybase.md

Keybase proof

I hereby claim:

  • I am am5a03 on github.
  • I am am5a03 (https://keybase.io/am5a03) on keybase.
  • I have a public key ASDOE1hnpld4uCZI9lDPpK4t3Ovjquvgs0HwgCecWEYB7go

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am am5a03 on github.
  • I am am5a03 (https://keybase.io/am5a03) on keybase.
  • I have a public key ASDOE1hnpld4uCZI9lDPpK4t3Ovjquvgs0HwgCecWEYB7go

To claim this, I am signing this object:

View page2.json
{
"meta": {
"code": 200
},
"data": {
"items": [
{
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"thumbnail": "https://i.pinimg.com/564x/8f/ca/1d/8fca1d02473f11de466517ac38c332db.jpg",
"title": "Item #10"
View page1.json
{
"meta": {
"code": 200
},
"data": {
"items": [
{
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"thumbnail": "https://i.pinimg.com/564x/25/82/32/258232a292c8f1a2b541b9cf7498ef71.jpg",
"title": "Item #0"
View Details.md

Server (2 peopele)

  • API design (Basic)
    • Sign in
      • Integrate Google / FB sign-in
    • Searching by location (?)
    • Listing
    • Booking transaction
    • User information (Dealer / Customer)
    • Review listing (?)
    • Review creation (?)
@am5a03
am5a03 / install_apk.sh
Created Apr 7, 2016
Install apk to multiple connected devices in parallel
View install_apk.sh
#!/bin/sh
adb devices | tail -n +2 | cut -sf 1 | xargs -P4 -I \{\} adb -s \{\} install -r $1
@am5a03
am5a03 / batch_install_apk.sh
Created Mar 21, 2016
Batch install apks to multiple connected devices
View batch_install_apk.sh
#!/bin/sh
adb devices | tail -n +2 | cut -sf 1 | xargs -I \{\} -P4 adb -s \{\} install -r $1
@am5a03
am5a03 / TestTextFragment.java
Created Mar 1, 2016
A fragment for testing setText performance
View TestTextFragment.java
package dnomyar.rxgag.ui.fragments;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
You can’t perform that action at this time.