- Networking command available on windows, Linux and macOS.
- Curl stands for (Client URL)
Basic usage will include the curl
and a URL, this will basically return the html content of URL you input
<?xml version="1.0" encoding="utf-8"?> | |
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="40dp" | |
android:height="40dp" | |
android:viewportHeight="40.0" | |
android:viewportWidth="40.0"> | |
<path | |
android:name="curves" | |
android:pathData="M 30 5 |
# no logging in production | |
-assumenosideeffects class android.util.Log { | |
v(...); | |
d(...); | |
i(...); | |
w(...); | |
e(...); | |
println(...); | |
} |
import java.math.BigDecimal; | |
import java.util.Locale; | |
import java.text.*; | |
public class CurrencyAmoutBdecimalConverter{ | |
public static void main(String []args)throws ParseException{ | |
final String dollarsA = "$199.00"; | |
final String real = "R$ 399,00"; | |
final String dollarsB = "£25.00"; | |
final String tailingEuro = "90,83 €"; |
import java.text.NumberFormat; | |
import java.util.Currency; | |
import java.util.Locale; | |
import java.util.Scanner; | |
public class CurrencyFormatter { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
double payment = scanner.nextDouble(); |
import java.util.*; | |
import java.util.stream.Collectors; | |
public class Anagrams { | |
private static String[] anagrams = { | |
"pear", | |
"amleth", | |
"dormitory", | |
"tinsel", | |
"dirty room", |
fun View.snack(message: String, length: Int = Snackbar.LENGTH_LONG, f: Snackbar.() -> Unit) { | |
val snack = Snackbar.make(this, message, length) | |
snack.f() | |
snack.show() | |
} | |
fun Snackbar.action(action: String, color: Int? = null, listener: (View) -> Unit) { | |
setAction(action, listener) | |
color?.let { setActionTextColor(color) } | |
} |
fun <T> Bundle.put(key: String, value: T) { | |
when (value) { | |
is Boolean -> putBoolean(key, value) | |
is String -> putString(key, value) | |
is Int -> putInt(key, value) | |
is Short -> putShort(key, value) | |
is Long -> putLong(key, value) | |
is Byte -> putByte(key, value) | |
is ByteArray -> putByteArray(key, value) | |
is Char -> putChar(key, value) |