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
set encoding=utf-8 | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Bundle 'jiangmiao/auto-pairs' |
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
class Speaker() { | |
private var message= Message("Hello") | |
private val audiences = ArrayList<Audience>() | |
fun setMessage(msg:String ) { | |
this.message.text = msg |
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
class Message (public var text : String){ | |
} |
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
class Audience() { | |
private var message= Message("") | |
fun update(message: Message) { | |
this.message = message | |
print("Got a new message: ${message.text}\n") | |
} | |
} |
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
fun main() { | |
// we create a speaker | |
val speaker = Speaker() | |
// we add three audiences to the speaker | |
speaker.addAudience(audience = Audience()) | |
speaker.addAudience(audience = Audience()) | |
speaker.addAudience(audience = Audience()) |
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
version: v1.0 | |
name: Inclusive-Android | |
agent: | |
machine: | |
type: e1-standard-2 | |
os_image: ubuntu1804 | |
blocks: | |
- name: SETUP | |
task: |
OlderNewer