Skip to content

Instantly share code, notes, and snippets.

@leandrofabianjr
leandrofabianjr / search_fab_transition.dart
Created July 8, 2024 11:24 — forked from fgatti675/search_fab_transition.dart
Flutter transition from FAB to navigator page
import 'dart:async';
import 'package:flutter/material.dart';
final routeObserver = RouteObserver<PageRoute>();
final duration = const Duration(milliseconds: 300);
void main() => runApp(MaterialApp(
home: HomePage(),
navigatorObservers: [routeObserver],
@leandrofabianjr
leandrofabianjr / nota-parana-scraper.js
Created July 2, 2024 21:24
Carregar todas as notas do site Nota Paraná
import axios from 'axios';
import { writeFileSync } from 'fs';
async function postRequestWithCookies(dateString) {
const cookiesJson = { // TODO: Substituir dados de cookie
_ga: '',
_ga_DSWHNB508V: '',
JSESSIONID: '',
THE_REQUESTED_URI: 'https://notaparana.pr.gov.br/nfprweb/Extrato',
THE_TOKEN: '',
function gerarSequencias(sequencia) {
const indexDaUltimaLetraDaSequencia = sequencia.length - 1;
var sequenciasGeradas = [
sequencia[indexDaUltimaLetraDaSequencia]
];
for (var i = indexDaUltimaLetraDaSequencia - 1; i >= 0; i--) {
const letraDaVez = sequencia[i];
sequenciasGeradas = [...new Set(
@leandrofabianjr
leandrofabianjr / delete_git_submodule.md
Created May 13, 2020 23:43 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@leandrofabianjr
leandrofabianjr / env-conf-windows.md
Last active April 4, 2020 11:25
Configurações diversas para ambientes Windows

Configurações de ambiente Windows

Powershell

  • Atualizar para última versão:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"