Remember to replace com.domain.appname
with your actual app package name
adb shell am force-stop com.domain.appname
adb shell am start -n com.domain.appname/com.domain.appname.MainActivity
Remember to replace com.domain.appname
with your actual app package name
adb shell am force-stop com.domain.appname
adb shell am start -n com.domain.appname/com.domain.appname.MainActivity
fun main(args: Array<String>) { | |
System.out.println("Lets buy beer") | |
buyBeer(1.0) | |
buyBeer(2.0) | |
buyBeer("Infinity".toDouble()) | |
} | |
fun buyBeer(beer : Double) = System.out.println("You are buying $beer beers and is more than one beer ${beer > 1}") |
exports.userCreationListener = functions.auth.user().onCreate(user => { | |
const admins = { | |
"first@admin.com": true | |
}; | |
const email = user.email; | |
if (!admins[email]) { | |
return false; | |
} | |
const uid = user.uid; | |
return admin.auth().setCustomUserClaims(uid, {superAdmin: true}).then( |
Original can be found here this is just a back up
ACT
AET
AGT
public class AvailableBox extends Checkbox implements FormField, OnCheckChangeListener { | |
private ErrorCallback errorCallback; | |
private User user; | |
//use the constructor with 1 argument for using only on java and the constructor with 2 arguments for using on xml | |
public AvailableBox(...) { | |
//you can add any MUST HAVE behaviour in the constructor | |
setOnCheckChangedListener(this); | |
} |
This scripts use LanguageTool for english spelling you can change it if you want to
This scripts also use Pando please make sure installing it before continue
bin
directory, on mine is called spelling
This project has moved to a Github repo
Simple command for an interactive commit with an input prompt in the bash terminal
let regex; | |
/* matching a specific string */ | |
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
/* wildcards */ | |
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) | |
public class GetRtdData<Model> extends implements RtdDataContract<Model> { | |
private final Class<Model> modelClass; | |
public GetRtdData(Class<Model> modelClass) { | |
this.modelClass = modelClass; | |
} | |
@Override |
import android.os.Process; | |
import android.util.Log; | |
import java.util.concurrent.LinkedBlockingDeque; | |
import java.util.concurrent.ThreadFactory; | |
import java.util.concurrent.ThreadPoolExecutor; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* Created by cutiko on 30-11-17. |