Skip to content

Instantly share code, notes, and snippets.

View tiagodalloca's full-sized avatar
🤖

Tiago Dall'Oca tiagodalloca

🤖
View GitHub Profile
;; Hey Michi! Hope you're doing well
;; First of all, nice "homework" you sent! I like the idea :)
;; Now, I'm aware my comments might seem lengthy. Honestly, in a real world scenario I'd be more brief. As this
;; is part of the interview process, I intentionally chose to be more thorough, so you can also judge my thought
;; process.
;; The approach I'll be taking in this exercise is highlighting specific parts of the code
;; acknowledging the intention behind it and explaining if it falls short, trying to explain what are the
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Retomando o Polimorfismo no Polígono\n",
"\n",
"Reveja a seguir o exemplo de polimorfismo e amarração dinâmica em C++. Estude este exemplo e tente escrevê-lo em Java na célula abaixo.\n",
"\n",
class SickZombie {
private boolean paralysis, yellow_tong, member_loss, chest_pain, trembling_finger, severe_anger, history_bacteria;
public SickZombie(boolean paralysis, boolean yellow_tong, boolean member_loss, boolean chest_pain, boolean trembling_finger, boolean severe_anger, boolean history_bacteria){
this.paralysis = paralysis;
this.yellow_tong = yeallow_tong;
this.member_loss = member_loss;
this.chest_pain = chest_pain;
this.trembling_finger = trembling_finger;
this.severe_anger = trembling_finger;
Exception in thread "ADSI prefetch thread"
java.lang.RuntimeException: java.lang.NumberFormatException: empty String
at org.deeplearning4j.datasets.iterator.AsyncDataSetIterator$AsyncPrefetchThread.run(AsyncDataSetIterator.java:442)
Caused by: java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.lang.Double.parseDouble(Double.java:538)
at org.datavec.api.writable.Text.toDouble(Text.java:593)
at org.deeplearning4j.datasets.datavec.RecordReaderMultiDataSetIterator.convertWritables(RecordReaderMultiDataSetIterator.java:419)
at org.deeplearning4j.datasets.datavec.RecordReaderMultiDataSetIterator.convertFeaturesOrLabels(RecordReaderMultiDataSetIterator.java:271)
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
@tiagodalloca
tiagodalloca / led.py
Created October 3, 2017 14:07
Traz o led que pisca
import RPi.GPIO as gpio
import time
gpio.setmode(gpio.BCM)
gpio.setup(17, gpio.OUT)
gpio.setup(18, gpio.OUT)
gpio.setup(22, gpio.OUT)
gpio.setup(23, gpio.OUT)
gpio.setup(24, gpio.OUT)
section .text
global _start
_start:
; mov edx, msg_len
; mov ecx, msg
; mov ebx, 1
; mov eax, 4
; int 0x80
; mov eax,3 ;instrucao para ler
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->