Skip to content

Instantly share code, notes, and snippets.

@BelenMedeyros
BelenMedeyros / main.dart
Last active September 12, 2024 20:20
Scrollable Animated Containers
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
@Nidal-Bakir
Nidal-Bakir / notification_service.dart
Last active March 9, 2025 13:31
Flutter notification service
// MIT License
//
// Copyright (c) 2025 Nidal Bakir
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@hectorAguero
hectorAguero / main.dart
Last active September 25, 2023 06:00
Flutter Android Transparent Navigation Bar
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:shared_preferences/shared_preferences.dart';
Future<void> main() async {
try{
WidgetsFlutterBinding.ensureInitialized();
final theme = (await SharedPreferences.getInstance()).getString("theme_mode");
runApp(
MyApp(
import 'package:flutter/material.dart';
class FadeIndexedStack extends StatefulWidget {
final int index;
final List<Widget> children;
final Duration duration;
const FadeIndexedStack({
Key key,
this.index,
@jbovet
jbovet / registrocivil.py
Last active December 13, 2024 19:43
Consulta de estado de documento de identidad registro civil Chile
import requests,urllib3, sys
from bs4 import BeautifulSoup
if len(sys.argv) < 3:
print('Usage: python registrocivil.py run docType docNumber')
sys.exit('ex: python registrocivil.py 11111111-K CEDULA 10600000')
URL="https://portal.sidiv.registrocivil.cl/usuarios-portal/pages/DocumentRequestStatus.xhtml"
headers={"Content-Type":"application/x-www-form-urlencoded",
"User-Agent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"}