./gradlew app:dependencies > deps.txt
./gradlew app:dependencies --configuration <productFlavors><buildTypeCapitalized>CompileClasspath
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
All Clickable Views: | |
----------- | |
* ripple effect (Lollipop only) -- "colorControlHighlight" | |
Status Bar: | |
------------ | |
* background (Lollipop only) - "colorPrimaryDark" |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"; | |
document.head.appendChild(script); | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="flat dates"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.2/moment.min.js"></script> |
class SuperSpecificButton : SpecificButton { | |
final override fun click() = print("Super Specific Click") | |
} |
open class Button { | |
open fun click() = print("Click") | |
fun doubleClick() = print("Double Click") | |
} | |
class SpecificButton() : Button { // Inheritance is now possible | |
override fun click() = print("Specific Click") // Now it works | |
override fun doubleClick() = print("Specific Double Click") // Error | |
} |
class Button { | |
fun click() = print("Click") | |
} | |
class SpecificButton : Button() { // Error | |
override fun click() = print("Specific Click") // Error | |
} |
abstract class Widget { | |
abstract fun draw() // open and must be overridden | |
open fun focus() {} // can be overridden | |
fun hide() {} // final by deafult, can't be overridden | |
} |
#!/bin/bash | |
grep -rnw '.' -e 'android.support' |