This file contains hidden or 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
interface Base<out A> { | |
fun someMethod(operation: (A) -> String): String | |
} | |
class Impl1<A>(val a: A): Base<A> { // could be a none empty node in linked list | |
override fun someMethod(operation: (A) -> String): String { | |
return "impl1 hahaha ${operation.invoke(a)}" | |
} |
This file contains hidden or 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
function hide_soft_keyboard(input_box) { | |
input_box.addEventListener("click", function() { | |
input_box.blur(); // very important call | |
input_box.focus();// very important call x2 | |
}); | |
} |
This file contains hidden or 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
# Python 3 !! | |
# folder structures: | |
''' | |
haominshi@MacBook-Pro-de-Haomin:~/Desktop$ tree diff | |
diff | |
├── Android_xml_content.txt | |
├── Android_xml_key.txt | |
├── Android_xml_key_stylized.txt | |
├── android_string_sorted.txt | |
├── android_string_sorted_final.txt |