- Amex Card:
^3[47][0-9]{13}$
- BCGlobal:
^(6541|6556)[0-9]{12}$
- Carte Blanche Card:
^389[0-9]{11}$
- Diners Club Card:
^3(?:0[0-5]|[68][0-9])[0-9]{11}$
- Discover Card:
^65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})$
- Insta Payment Card:
^63[7-9][0-9]{13}$
- JCB Card:
^(?:2131|1800|35\d{3})\d{11}$
- KoreanLocalCard:
^9[0-9]{15}$
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
This file contains 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
1. Download latest apktool version. | |
2. Download the batch file and aapt.exe. | |
3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder. | |
4. Open command prompt. | |
5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe. | |
6. Now, you need to install the file using the " IF " command. | |
7. Type the following command. | |
apktool if name-of-the-app.apk |
This file contains 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
private fun printHashKey(context: Context) { | |
try { | |
val info = | |
context.packageManager.getPackageInfo(context.packageName, PackageManager.GET_SIGNATURES) | |
for (signature in info.signatures) { | |
val md = MessageDigest.getInstance("SHA") | |
md.update(signature.toByteArray()) | |
val hashKey = String(Base64.encode(md.digest(), 0)) | |
Log.i("printHashKey()", "Hash Key: $hashKey") | |
} |
This file contains 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
package com.javarush.test.level07.lesson12.home02; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
/* Переставить M первых строк в конец списка | |
Ввести с клавиатуры 2 числа N и M. | |
Ввести N строк и заполнить ими список. |
This file contains 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
package com.javarush.test.level07.lesson09.task02; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
/* 5 слов в обратном порядке | |
Введи с клавиатуры 5 слов в список строк. Выведи их в обратном порядке. | |
*/ |
This file contains 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
package com.javarush.test.level07.lesson09.task03; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
/* Слово «именно» | |
1. Создай список из слов «мама», «мыла», «раму». | |
2. После каждого слова вставь в список строку, содержащую слово «именно». |
This file contains 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
package com.javarush.test.level07.lesson06.task03; | |
/* 5 строчек в обратном порядке | |
1. Создай список строк. | |
2. Считай с клавиатуры 5 строк и добавь в него. | |
3. Расположи их в обратном порядке. | |
4. Используя цикл выведи содержимое на экран, каждое значение с новой строки. | |
*/ | |
import java.io.BufferedReader; |
This file contains 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
package com.javarush.test.level07.lesson04.task04; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
/* Массив из чисел в обратном порядке | |
1. Создать массив на 10 чисел. | |
2. Ввести с клавиатуры 10 чисел и записать их в массив. | |
3. Расположить элементы массива в обратном порядке. | |
4. Вывести результат на экран, каждое значение выводить с новой строки. |
NewerOlder