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 handleAddGeolocation = async () => { | |
| if (isFetchingLocation) return; // evita múltiplos cliques | |
| setIsFetchingLocation(true); | |
| try { | |
| // 1) Verifica se os serviços de localização estão ativos | |
| const servicesEnabled = await Location.hasServicesEnabledAsync(); | |
| if (!servicesEnabled) { | |
| Alert.alert( | |
| 'Serviço de localização desligado', |
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
| version: '3.1' | |
| services: | |
| mongo: | |
| image: mongo | |
| container_name: "mongo" | |
| restart: always | |
| environment: |
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
| { | |
| "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'", | |
| "workbench.startupEditor": "newUntitledFile", | |
| "editor.minimap.enabled": true, | |
| "editor.fontSize": 13, | |
| "code-runner.clearPreviousOutput": true, | |
| "breadcrumbs.enabled": true, | |
| "workbench.iconTheme": "material-icon-theme", | |
| "window.zoomLevel": 1, | |
| "debug.console.fontSize": 13, |
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
| """ | |
| # Dockerfile | |
| FROM python:3.7.9-slim-buster | |
| WORKDIR /app | |
| COPY requirements.txt requirements.txt | |
| RUN python -m pip install -r requirements.txt |
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
| from app.data import db # db = SQLAlchemy() | |
| from sqlalchemy.dialects.postgresql import JSON | |
| import json | |
| import hashlib | |
| class ComprasRaw(db.Model): | |
| __tablename__ = "compras_raw" | |
| __table_args__ = (db.UniqueConstraint("values", "hash_values"),) |
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
| pip install streamlit | |
| pip install spacy | |
| python -m spacy download en_core_web_sm | |
| python -m spacy download en_core_web_md | |
| python -m spacy download de_core_news_sm |