Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Chrispassold's full-sized avatar

Christian Passold Chrispassold

View GitHub Profile
@Chrispassold
Chrispassold / BrazilianNumberStringConverter.kt
Created July 9, 2020 15:06
Brazilian number converter to string
import java.math.BigDecimal
import java.security.InvalidParameterException
import kotlin.text.StringBuilder
object BrazilianNumberStringConverter {
private val units = arrayOf(
"",
"um",
"dois",
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'io.reactivex.rxjava3:rxjava:3.0.0'
import android.os.Bundle
data class Event internal constructor(
val name: String,
val params: Bundle
) {
override fun toString(): String {
return "Event(name='$name', params=$params)"
}
}
data class UserProperty internal constructor(
val key: String,
val value: Any
) {
override fun toString(): String {
return "UserProperty(key='$key', value=$value)"
}
}
import os
import requests
import io
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
def show_images_side_by_side(left_images_path, right_images_path):
if len(left_images_path) != len(right_images_path):
raise Exception("Size must be identical")
@Chrispassold
Chrispassold / labels-flickr-dog-dataset.csv
Last active October 25, 2020 21:57
Flickr-dog dataset labels. Labeling each dog breed, 'h' for husky and 'p' for pug.
label category
Apolo h
Bailey h
Bandit p
Bella h
Bella-Kappel h
Bella-Theresa h
Bu-chan p
Chloe p
Clara p
data segment
zero:
db " 000000000 ",10
db " 00:::::::::00 ",10
db " 00:::::::::::::00 ",10
db "0:::::::000:::::::0 ",10
db "0::::::0 0::::::0 ",10
db "0:::::0 0:::::0 ",10
; multi-segment executable file template.
#start=robot.exe#
r_port equ 9
n_lamps equ 3
data segment
; add your data here!
n_lamps_on db ?
; multi-segment executable file template.
FINAL_PONTOS equ 33
PONTOS_NORMAL equ 1 ; quando acerta um W
PONTOS_ESPECIAL equ 3 ; quando acerta um *
data segment
; add your data here!
NAVES_SPACE: