Skip to content

Instantly share code, notes, and snippets.

View jeanPokou's full-sized avatar

jean POKOU jeanPokou

View GitHub Profile
@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:
@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 / 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 / Message.kt
Created November 10, 2018 01:20
Message Class for Java Observer Pattern
class Message (public var text : String){
}
@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 / .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 / Android Studio .gitignore
Created September 28, 2017 11:47 — forked from iainconnor/Android Studio .gitignore
A .gitignore for use in Android Studio
# Built application files
/*/build/
# Crashlytics configuations
com_crashlytics_export_strings.xml
# Local configuration file (sdk path, etc)
local.properties
# Gradle generated files
Bundle 'LucHermitte/lh-vim-lib'
Bundle 'LucHermitte/lh-tags'
Bundle 'LucHermitte/lh-dev'
Bundle 'LucHermitte/lh-brackets'
Bundle 'LucHermitte/searchInRuntime'
Bundle 'LucHermitte/mu-template'
Bundle 'tomtom/stakeholders_vim'
Bundle 'LucHermitte/lh-cpp'
Bundle 'rhysd/vim-grammarous' " grammarly
@jeanPokou
jeanPokou / .vimrc
Last active October 19, 2016 19:18
Blundle 'yazug/vim-taglist-plus' "taglist plugin
Bundle 'terryma/vim-expand-region' "expand region plugin
" leader key + w to save
nnoremap <Leader>w :w <CR>
"map v to expand region plugin
vmap v <Plug>(expand_region_expand)
"map <S-v> to shrink region plugin
@jeanPokou
jeanPokou / designer.html
Last active August 29, 2015 14:15
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">