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
| package hello | |
| import hello.Language.* | |
| enum class Language(val greeting: String) { | |
| EN("Hello"), ES("Hola"), FR("Bonjour") | |
| } | |
| open class Person(var name: String, var lang: Language = EN) { | |
| fun greet() = println("${lang.greeting}, $name!") |
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
| if [ "$#" == "0" ]; then | |
| echo "usage: adbs <device> <command>" | |
| n=0 | |
| while read -r line | |
| do | |
| if [ "$n" -gt "0" ] && [ -n "$line" ]; then | |
| echo "$n: " "$line" | |
| else | |
| echo "$line" |
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
| import android.media.AudioFormat; | |
| import android.media.AudioRecord; | |
| import android.media.MediaRecorder.AudioSource; | |
| import android.os.Process; | |
| public class AudioMeter extends Thread { | |
| ///////////////////////////////////////////////////////////////// | |
| // PUBLIC CONSTANTS | |
| // Convenience constants |
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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import os | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| import re | |
| idAttrib = '{http://schemas.android.com/apk/res/android}id' |
NewerOlder