Skip to content

Instantly share code, notes, and snippets.

View FernandoCelmer's full-sized avatar

Fernando Celmer FernandoCelmer

View GitHub Profile
@FernandoCelmer
FernandoCelmer / WhatsappMessage.py
Last active April 19, 2024 01:20
Script Python para enviar mensagens automatizadas pelo Whatsapp.
import time
import requests
import webbrowser as web
import pyautogui as pg
import pyttsx3
class WhatsappMessage:
def __init__(self,phone_no, message, time_hour, time_min):
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"sync"
)
{
"package": {
"docker": [
{
"id": "9B163E4B325C46AD9A169C4B98E4275B",
"tag": "docker",
"type": "brew",
"name": "docker",
"url": null,
"file": null,
@FernandoCelmer
FernandoCelmer / test.py
Created November 16, 2023 16:40
test.py
import pytest
from sqlalchemy import create_engine, Column, Integer, String, DateTime, Text, ForeignKey
from sqlalchemy.engine import URL
from sqlalchemy.orm import declarative_base, relationship, sessionmaker
from datetime import datetime
from sqlalchemy.exc import IntegrityError
Base = declarative_base()
@FernandoCelmer
FernandoCelmer / scrapping.py
Created November 10, 2023 20:22
scrapping.py
"""
pip install selenium
pip install webdriver-manager
python scrapping.py
"""
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
class Model:
def __init__(self, config: dict) -> None:
self.config = config
class Producer:
def __new__(cls, config: dict, debug: bool):
if debug:
pkgbase = linux-profile
pkgdesc = 🐧 Linux Profile Management CLI Tool
pkgver = 1.0.19
pkgrel = 1
url = https://github.com/linux-profile/linux-profile
arch = any
license = MIT
makedepends = python-docutils
makedepends = python-setuptools
depends = python
# Maintainer: Fernando Celmer <email@fernandocelmer.com>
pkgname=linux-profile
pkgver="1.0.19"
pkgrel=1
pkgdesc="🐧 Linux Profile Management CLI Tool"
arch=('any')
url="https://github.com/linux-profile/linux-profile"
license=('MIT')
depends=('python')
from json import dumps
from typing import Any, List, _GenericAlias
from dataclasses import dataclass, Field
from abc import ABC, abstractmethod
@dataclass
class DataClass:
id: int
# -*- coding: utf-8 -*-
# Sample Python code for youtube.subscriptions.list
# See instructions for running these code samples locally:
# https://developers.google.com/explorer-help/code-samples#python
import os
import json
from apiclient.errors import HttpError