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
| const state = { mqtt: null } | |
| let client = {} | |
| const MQTTLayer = { | |
| set({ hostname, username, password, clientid, topic, port, message }) { | |
| state.mqtt = { | |
| hostname, | |
| username, | |
| password, | |
| clientid, |
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
| { | |
| "nome": "Isabela" | |
| } |
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
| /** | |
| * Sensor de Temperatura e Umidade, com seus valores mostrados em um display Nokia 5110 | |
| */ | |
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_PCD8544.h> | |
| #include <dht.h> | |
| #define dht_dpin D4 | |
| dht DHT; |
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 React, { Component } from 'react'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| const Pdf = ({ src = '' }) => { | |
| return <embed src={`data:application/pdf;charset=utf-8;base64, ${src}`} type="application/pdf"/> | |
| // return <embed src={`https://www.hrw.org/sites/default/files/reports/wr2010_0.pdf`} /> | |
| } | |
| class App extends Component { |
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
| //https://www.carbondesignsystem.com/components/button/code | |
| import styled from 'styled-components' | |
| const COLORS = { | |
| primary: '#fff', | |
| secondary: '#3d70b2', | |
| tertiary: '#5a6872', | |
| ghost: '#3d70b2', | |
| danger: '#e0182d', |
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
| //"react": "^16.7.0-alpha.0" | |
| //"react-dom": "^16.7.0-alpha.0" | |
| import React, { useState } from "react"; | |
| import ReactDOM from "react-dom"; | |
| import "./styles.css"; | |
| function App() { | |
| const [number, setNumber] = useState(0); | |
NewerOlder