Part 1 is the script — read it. Parts 2 and 3 are notes to review before you go on, not during.
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 re | |
| from datetime import date | |
| from beancount.ingest.importer import ImporterProtocol | |
| from beancount.core import amount, data | |
| from ofxparse import OfxParser | |
| _prefix_account_dct = { |
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 csv | |
| from datetime import datetime, date, timedelta | |
| from decimal import Decimal | |
| from os import path | |
| from beancount.core import amount, data | |
| from beancount.core.amount import Amount | |
| from beancount.ingest.importer import ImporterProtocol |
Sistema automatizado para processar arquivos OFX do Nubank enviados via Telegram, categorizando transações e detectando duplicatas.
Basta enviar o arquivo OFX do Nubank pelo Telegram. O sistema irá:
- Detectar automaticamente que é um arquivo OFX
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
| print('Hello World') | |
| variavel = 2 |
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
| def sync_user_on_discourse(subscription: Subscription): | |
| """ | |
| Synchronize user data on forum if API is configured | |
| :param subscription | |
| :return: returns result of hitting Discourse api | |
| """ | |
| can_make_api_call = bool(settings.DISCOURSE_API_KEY and settings.DISCOURSE_API_USER) | |
| can_work_without_sync = not (settings.DISCOURSE_BASE_URL or can_make_api_call) | |
| if can_work_without_sync: | |
| _logger.info('Discourse Integration not available') |
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 os | |
| from pathlib import Path | |
| def main(): | |
| caminho_do_arquivo = Path(__file__) | |
| caminho_do_arquivo = caminho_do_arquivo / '..' / '..' / 'templates' / 'template.txt' | |
| print(caminho_do_arquivo.resolve()) | |
| print(caminho_do_arquivo) | |
| with open(caminho_do_arquivo.resolve(), 'r', encoding='utf8') as arquivo: |
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 Vue from 'vue' | |
| import Router from 'vue-router' | |
| import Index from '~/pages/index.vue' | |
| import Perfil from '~/pages/perfil.vue' | |
| import User from '~/pages/user/_username/index.vue' | |
| import Todos from '~/pages/todos.vue' | |
| Vue.use(Router) | |
| export const routerOptions = { |
NewerOlder