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
import java.text.Collator; | |
import java.text.ParseException; | |
import java.text.RuleBasedCollator; | |
import java.util.Locale; | |
public class PersianCollator{ | |
/** | |
* This string is persian collation rules which is in fact a modification to existing arabic collation rules. Features of these rules are: 1. vav | |
* (u0648) is put before heh (u0647) 2. persian yeh (u06cc) is sorted before arabic yeh (0649 and 064a) 3. persian kaf (u06a9) is sorted before arabic |
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
public static String commaDelimited(String number) { | |
if (isBlank(number)) { | |
return ""; | |
} | |
number = number.replaceAll(",", ""); | |
if (number.length() <= 3) { | |
return number; | |
} |
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 app.util; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.graphics.Typeface; | |
import android.graphics.drawable.Drawable; | |
import android.view.Gravity; | |
import android.widget.TextView; | |
import android.widget.Toast; |
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
npm install --save-dev babel-eslint eslint eslint-config-prettier eslint-loader eslint-plugin-vue eslint-plugin-prettier prettier | |
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
https://my.api.mockaroo.com/employees.json?key=ac23d4c0 |
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
apply plugin: 'com.android.application' | |
// this task extracts Android project’s dependencies as offline jar files. | |
// add these files to server's lib folder | |
android.applicationVariants.all { variant -> | |
task "copyDependencies${variant.name.capitalize()}"() { | |
outputs.upToDateWhen { false } | |
doLast { | |
println "Executing copyDependencies${variant.name.capitalize()}" | |
variant.getCompileClasspath().each { fileDependency -> | |
def sourcePath = fileDependency.absolutePath |
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
### process to refresh environment variables without reboot windows | |
open cmd commend prompt window | |
input set `PATH=C` -> this will refresh the environment variables | |
close and restart cmd window | |
input echo %PATH% to test |
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
#copy this file to c:\windows | |
@ECHO OFF | |
ECHO Delete Folder: %CD%? | |
PAUSE | |
SET FOLDER=%CD% | |
CD / | |
DEL /F/Q/S "%FOLDER%" > NUL | |
RMDIR /Q/S "%FOLDER%" | |
EXIT |
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
<code_scheme name="GoogleStyle copy" version="173"> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="2" /> | |
<option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
<option name="TAB_SIZE" value="2" /> | |
</value> | |
</option> | |
<option name="RIGHT_MARGIN" value="180" /> | |
<AndroidXmlCodeStyleSettings> |