Skip to content

Instantly share code, notes, and snippets.

View isabelandss's full-sized avatar
🖤

Isabela Neri dos Santos isabelandss

🖤
  • São Paulo, SP
View GitHub Profile
const state = { mqtt: null }
let client = {}
const MQTTLayer = {
set({ hostname, username, password, clientid, topic, port, message }) {
state.mqtt = {
hostname,
username,
password,
clientid,
{
"nome": "Isabela"
}
/**
* 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;
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 {
@isabelandss
isabelandss / styles.js
Last active December 25, 2018 13:12
Styled Component with Carbon Design System Reference
//https://www.carbondesignsystem.com/components/button/code
import styled from 'styled-components'
const COLORS = {
primary: '#fff',
secondary: '#3d70b2',
tertiary: '#5a6872',
ghost: '#3d70b2',
danger: '#e0182d',
@isabelandss
isabelandss / app.jsx
Last active December 6, 2018 16:05
hook-react-example
//"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);