Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Passold Chrispassold

View GitHub Profile
View Cube_Cube
# Blender v2.70 (sub 0) OBJ File: ''
# www.blender.org
o Cube_Cube.001
v -1.000000 -0.357042 2.947965
v -0.947965 -0.335488 3.000000
v -0.857042 -0.500000 2.947965
v -0.835488 -0.447965 3.000000
v -0.857042 -0.500000 -2.947965
v -0.835488 -0.447965 -3.000000
v -1.000000 -0.357042 -2.947965
View CalculadoraControler.kt
import java.lang.Exception
class CalculadoraController {
fun executarOperacao(text: String): Int {
if(text.contains('*')){
val split = text.split('*')
if(split.size > 2)
throw Exception("Multiplicação inválida")
View space_trabalho_final.asm
; 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:
View robot.asm
; 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 ?
View big_relogio_ascii.asm
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
@Chrispassold
Chrispassold / labels-flickr-dog-dataset.csv
Last active Oct 25, 2020
Flickr-dog dataset labels. Labeling each dog breed, 'h' for husky and 'p' for pug.
View labels-flickr-dog-dataset.csv
label category
Apolo h
Bailey h
Bandit p
Bella h
Bella-Kappel h
Bella-Theresa h
Bu-chan p
Chloe p
Clara p
View colab_utils.py
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")
View UserProperty.kt
data class UserProperty internal constructor(
val key: String,
val value: Any
) {
override fun toString(): String {
return "UserProperty(key='$key', value=$value)"
}
}
View Event.kt
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)"
}
}