This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { toast } from 'react-toastify'; | |
import { useState, useEffect } from 'react'; | |
function Componente() { | |
const [toastAudio, setToastAudio] = useState(false); | |
const chamadaApi = async () => { | |
//... | |
toast.error(); | |
setToastAudio(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ORG 0x0000 | |
RJMP main | |
main: | |
LDI r16,0b11111101 | |
OUT DDRD,r16 ;CONFIGURA PD0 COMO SAÍDA (LED) E PD1 COMO ENTRADA (BOTÃO) | |
LDI r16,0b11111100 | |
OUT PortD,r16 ;INICIALIZA O LED COMO INICIALMENTE DESLIGADO | |
NOP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ORG 0x0000 | |
RJMP main | |
main: | |
LDI r16,0xFF | |
OUT DDRD,r16 | |
loop: | |
LDI r25,0b00111111 | |
OUT PortD,r25 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ORG 0x0000 | |
RJMP main | |
main: | |
LDI r16,0xFF | |
OUT DDRB,r16 | |
LDI r20,0b000000 | |
OUT PortB, r20 | |
loop: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Stack{ | |
private StackNode topOfStack; | |
private class StackNode{ | |
private Object element; | |
private StackNode next; | |
private StackNode(Object e, StackNode n){ | |
element = e; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fibonacci | |
{ | |
public static int calcfib; | |
public static void main(String[] args){ | |
calcfib = fib(5); | |
System.out.println(calcfib); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autenticacao.addStateDidChangeListener { (autenticacao, user) in | |
if let usuarioLogado = user { | |
if self.tipoString != "farmacia" { | |
self.performSegue(withIdentifier: "mapaSegueLogin", sender: nil) | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// TesteFirebase | |
// | |
// Created by Pedro Gaya on 07/07/17. | |
// Copyright © 2017 GayaSolutions. All rights reserved. | |
// | |
import UIKit | |
import FirebaseDatabase |