Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘
hello world, guys

Thiago Bruno othiagobruno

🤘
hello world, guys
  • Balsas
View GitHub Profile
View gist:5ce0075b41bc73d2b3b43f23312397a0
{
"status": "OK",
"msg": "Consulta Realizada com Sucesso",
"total": 1,
"summary": {},
store:{
"id": 12,
"name": "Bambinos ",
"slug": "bambinos",
},
View gist:e932c0238a799a42e2dd467bdf155cf3
const capa_business = {
original:
'https://img.elo7.com.br/product/zoom/19D34B3/adesivo-de-parede-predios-preto-e-branco-adesivo-para-cozinha.jpg',
small:
'https://img.elo7.com.br/product/zoom/19D34B3/adesivo-de-parede-predios-preto-e-branco-adesivo-para-cozinha.jpg',
};
const logo_business = {
original:
'https://www.sinpma.com.br/wp-content/uploads/2018/12/28-12-2018-19_23_17-CONVENIOS-SINPMA-1.docx-Modo-de-Compatibilidade-Word.png',
View gist:0b29a8d23a012f29442bafe1d22fe321
// retorno de todos url:
// v1/admin/outdoors, { type: '', locale: '', filter: expiration | mais recente }
[
{
name: 'Teste Outdoor 01',
date_start: '2020-12-04',
type: 'slide' | 'banner',
date_end: '2020-12-25',
offer:{
id: '',
View auth hook
import React, { createContext, useContext, useEffect, useState } from 'react';
import api from 'services/api';
import interceptResponse from 'services/interceptResponse';
const AuthContext = createContext({});
export const AuthProvider = ({ children }) => {
const [auth, setAuth] = useState({
isAuth: false,
data: {},
View gist:dc428a3890c98ccc94dfd7fe98a53ec5
import React, { useEffect, useState } from 'react';
import { View, TouchableOpacity } from 'react-native';
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
import { styles } from './styles';
import { userConfig } from '../../hooks/configUser';
const CheckBox = ({name, value, setValue, values}) => {
const [isCheck, setIsCheck] = useState(false);
const { getUserUpdateConfig, loading } = userConfig();
View gist:c68b31049641fc7a2ffef70c543f0eed
{
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
"terminal.integrated.fontSize": 12,
"terminal.integrated.fontFamily": "Fira Code",
"editor.tabSize": 2,
View gist:117f54c071296fdffb943eaceca9ab01
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'airbnb'],
plugins: ['prettier'],
parserOptions: {
ecmaFeatures: {
View gist:3836e430c4588c32e3fee64a0da66ab8
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
'prettier/prettier',
'plugin:prettier/recommended',
View gist:ca01b1204d9a7b98a0f4748d7020435e
{
"git.enableSmartCommit": true,
"git.confirmSync": false,
"git.autofetch": true,
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "material-icon-theme",
"terminal.integrated.shell.osx": "/bin/zsh",
"explorer.compactFolders": false,
View gist:b8631d84cf039492df86a1a311eaa979
"products": [
{
"id": 700,
"name": "Camiseta Harry potter",
"slug": "017-700/camiseta-harry-potter",
"description": "Camisa harry potter\n",
"price": 250.0,
"price_whole": 250.0,
"new_price": null,
"images": [