Skip to content

Instantly share code, notes, and snippets.

View jeanPokou's full-sized avatar

jean POKOU jeanPokou

View GitHub Profile
@jeanPokou
jeanPokou / .vimrc
Created October 16, 2017 12:07
Window .virmc
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'
@jeanPokou
jeanPokou / Speaker.kt
Last active November 10, 2018 01:16
Java Observer Pattern
class Speaker() {
private var message= Message("Hello")
private val audiences = ArrayList<Audience>()
fun setMessage(msg:String ) {
this.message.text = msg
@jeanPokou
jeanPokou / Message.kt
Created November 10, 2018 01:20
Message Class for Java Observer Pattern
class Message (public var text : String){
}
@jeanPokou
jeanPokou / Audience.kt
Created November 10, 2018 01:23
Audience class for Java Observer Pattern
class Audience() {
private var message= Message("")
fun update(message: Message) {
this.message = message
print("Got a new message: ${message.text}\n")
}
}
@jeanPokou
jeanPokou / Main.kt
Last active November 10, 2018 01:35
Main class for Observer Pattern
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())
@jeanPokou
jeanPokou / semaphore.yml
Created March 29, 2019 16:57
Attemp of android ci with semaphore
version: v1.0
name: Inclusive-Android
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: SETUP
task: