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 importlib.abc | |
import importlib.machinery | |
import sys | |
import types | |
class DependencyInjectorFinder(importlib.abc.MetaPathFinder): | |
def __init__(self, loader): | |
self._loader = loader | |
def find_spec(self, fullname, path, target=None): |
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
"""TensorFlow 2.0 implementation of vanilla Autoencoder.""" | |
import numpy as np | |
import tensorflow as tf | |
__author__ = "Abien Fred Agarap" | |
np.random.seed(1) | |
tf.random.set_seed(1) | |
batch_size = 128 | |
epochs = 10 |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
# You need PIL <http://www.pythonware.com/products/pil/> to run this script | |
# Download unifont.ttf from <http://unifoundry.com/unifont.html> (or use | |
# any TTF you have) | |
# Copyright 2011 Álvaro Justen [alvarojusten at gmail dot com] | |
# License: GPL <http://www.gnu.org/copyleft/gpl.html> | |
from image_utils import ImageText |
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
from fastapi import FastAPI, UploadFile, HTTPException | |
from starlette.requests import Request | |
from streaming_form_data import StreamingFormDataParser | |
from streaming_form_data.targets import FileTarget | |
from tempfile import NamedTemporaryFile | |
import os | |
import shutil |
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
apiVersion: argoproj.io/v1alpha1 | |
kind: Workflow | |
metadata: | |
generateName: dask-test- | |
spec: | |
entrypoint: dask | |
activeDeadlineSeconds: 1800 # Safety first, kids! | |
templates: | |
- name: dask | |
script: |
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
@pytest.fixture(autouse=True) | |
def mute_signals(request): | |
# Skip applying, if marked with `enabled_signals` | |
if 'enable_signals' in request.keywords: | |
return | |
signals = [pre_save, post_save, pre_delete, post_delete, m2m_changed] | |
restore = {} | |
for signal in signals: | |
restore[signal] = signal.receivers |
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
Listado de Proxies para Telegram | |
Copia y pega los enlaces en el navegador para que se abran con Telegram. | |
Añade los servidores y DESACTIVA el proxy mientras no lo necesites. | |
Podéis gestionarlos desde Ajustes > Datos y almacenamiento > Proxy | |
*23/03/2024* | |
tg://proxy?server=proxy.digitalresistance.dog&port=443&secret=d41d8cd98f00b204e9800998ecf8427e |
OlderNewer