Skip to content

Instantly share code, notes, and snippets.

View am5a03's full-sized avatar
🤔
To be or not to be

Raymond Chan am5a03

🤔
To be or not to be
  • Hong Kong
View GitHub Profile
@am5a03
am5a03 / keybase.md
Created January 24, 2018 06:20
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:

@am5a03
am5a03 / keybase.md
Created January 24, 2018 06:20
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:

{
"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"
@am5a03
am5a03 / page1.json
Last active January 21, 2018 04:27
{
"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"
@am5a03
am5a03 / Details.md
Last active November 6, 2017 14:51
Draft

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 April 7, 2016 06:54
Install apk to multiple connected devices in parallel
#!/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 March 21, 2016 11:17
Batch install apks to multiple connected devices
#!/bin/sh
adb devices | tail -n +2 | cut -sf 1 | xargs -I \{\} -P4 adb -s \{\} install -r $1
@am5a03
am5a03 / TestTextFragment.java
Created March 1, 2016 17:45
A fragment for testing setText performance
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;
@am5a03
am5a03 / download_seq.sh
Created February 27, 2016 04:00
Download a sequence of file in command
seq 1 10 | xargs -n1 -P2 bash -c 'i=$0; url="http://example.com/?page${i}.html"; curl -O -s $url'
#!/bin/bash
for dir in `ls -d *`
do
git subtree split -P $dir -b "tmp-$dir"
mkdir -p "./splitted/$dir"
cd "splitted/$dir"
git init
git pull ../../ "tmp-$dir"
cd ../../
done