Skip to content

Instantly share code, notes, and snippets.

View jlccaires's full-sized avatar

Julio Cesar Caires jlccaires

View GitHub Profile
@jlccaires
jlccaires / RxRetry.kt
Created July 23, 2019 21:33
RxJava Auto retry with attempt limit
fun main() {
Observable.create<String> {
while (true) {
if (it.isDisposed) break
val input = readLine()
if (input == null || input == "e") {
it.onError(Exception())
continue
}

Keybase proof

I hereby claim:

  • I am jlccaires on github.
  • I am jlccaires (https://keybase.io/jlccaires) on keybase.
  • I have a public key ASDMGPAqNxx6cnYHTtGC3xRX-yBqIO94BE1bmKs2Z5ze-wo

To claim this, I am signing this object:

@jlccaires
jlccaires / UploadModal.vue
Last active January 5, 2021 12:55
Vue upload, gallery, preview, progress using vue-upload-component, Buefy, ElementUI and filesize.js
<template>
<b-modal :active="true" :onCancel="close">
<div class="modal-card">
<section class="modal-card-body">
<nav class="level">
<div class="level-left">
<el-tooltip v-if="errorFiles.length" placement="bottom" effect="light">
<div slot="content">
<div>
Alguns arquivos não puderam ser enviados: