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
"""ZeroMQ module""" | |
import asyncio | |
from typing import Callable | |
from zmq import Context as ContextClient, PUSH, PULL, POLLIN # type: ignore | |
from zmq.asyncio import Context as ContextServer, Poller # type: ignore | |
from dotflow.abc.tcp import TCPClient, TCPServer |
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 time | |
dots = ["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"] | |
for dot in dots: | |
time.sleep(0.1) | |
print(f"\r{dot} Working on task...", end="", flush=True) |
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 retry(max_retry): | |
def inside(func): | |
def wrapper(*args, **kwargs): | |
attempt = 0 | |
error_output = None | |
while max_retry > attempt: | |
try: | |
return func(*args, **kwargs) | |
except Exception as error: |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"net/http" | |
"sync" | |
) |
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 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() |
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 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 |
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
{ | |
"package": { | |
"docker": [ | |
{ | |
"id": "9B163E4B325C46AD9A169C4B98E4275B", | |
"tag": "docker", | |
"type": "brew", | |
"name": "docker", | |
"url": null, | |
"file": null, |
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
class Model: | |
def __init__(self, config: dict) -> None: | |
self.config = config | |
class Producer: | |
def __new__(cls, config: dict, debug: bool): | |
if debug: |
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
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 |
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
# 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') |
NewerOlder