repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
amommendes/python-fluente
book/chapter2/lists.py
<filename>book/chapter2/lists.py if __name__=="__main__": # List of lists board = [["_"]*3 for i in range(3)] board[1][2] = "X" weird_board = [["_"]*3] * 3 weird_board [1][2] = "X" print(board,'\n',weird_board) # More operators
amommendes/python-fluente
design_patterns/factory/creators/transport_creators.py
from abc import ABC, abstractmethod from design_patterns.factory.services.transportation import Truck class TransportationCreator(ABC): """ This is the abstract creator :return: returns the desired transportation method """ @abstractmethod def create_transport(self): pass cla...
amommendes/python-fluente
design_patterns/factory/services/transportation.py
from abc import ABC, abstractmethod class Transportation(ABC): """ This interface declare common operation to product subclasses """ @abstractmethod def delivery(self) -> str: """Delivery method should be implemented to transportation subclass :return: return the deliver...
amommendes/python-fluente
design_patterns/abstract_factory/abstract_products/chair.py
from abc import ABC,abstractmethod class Chair(ABC): @abstractmethod def color(): pass @abstractmethod def has_gold(self): pass @abstractmethod def size(self): pass
amommendes/python-fluente
design_patterns/abstract_factory/concretes/modern_concretes/modern_furniture.py
from design_patterns.abstract_factory.furniture_factory import FurnitureAbstractFactory from design_patterns.abstract_factory.abstract_products.chair import Chair from design_patterns.abstract_factory.abstract_products.coffe_table import CoffeTable class ModernChair(Chair): @staticmethod def color(): ...
amommendes/python-fluente
design_patterns/builder/car/car_builder.py
from design_patterns.builder.builder import GenericBuilder class Car: def __init__(self): self.seats = None self.engine = None self.trip_computer = None self.gps = None def describe(self): print(f"""Seats: {self.seats}\nEngine: {self.engine}\nHas Trip Computer: {self.t...
amommendes/python-fluente
design_patterns/abstract_factory/furniture_factory.py
from abc import ABC,abstractmethod from design_patterns.abstract_factory.abstract_products.chair import Chair from design_patterns.abstract_factory.abstract_products.coffe_table import CoffeTable class FurnitureAbstractFactory(ABC): @abstractmethod def create_chair(self) -> Chair: pass @abs...
amommendes/python-fluente
design_patterns/builder/car_director/director.py
<filename>design_patterns/builder/car_director/director.py<gh_stars>0 from design_patterns.builder.builder import GenericBuilder class CarDirector: def __init__(self): self.__builder = None @property def builder(self): return self.__builder @builder.setter def builder(self, builde...
amommendes/python-fluente
design_patterns/builder/builder.py
from abc import ABC, abstractmethod class GenericBuilder(ABC): """A car is a complex object that can be constructed in a hundred different ways. Instead of bloating the Car class with a huge constructor, we extracted the car assembly code into a separate car builder class. This class has a set of m...
amommendes/python-fluente
utils/change_content.py
import os from collections import namedtuple import re import csv from pathlib import Path def _is_file(path_dir, child): return os.path.isfile(os.path.join(path_dir, child)) and (child != "__init__.py") and (child.split(".")[1] == "py") def _is_directory(path_dir, directory): return directory != "__pycache_...
amommendes/python-fluente
design_patterns/abstract_factory/concretes/victorian_concretes/victorian_furniture.py
<gh_stars>0 from design_patterns.abstract_factory.furniture_factory import FurnitureAbstractFactory from design_patterns.abstract_factory.abstract_products.chair import Chair from design_patterns.abstract_factory.abstract_products.coffe_table import CoffeTable class VictorianChair(Chair): """ This a concre...
amommendes/python-fluente
design_patterns/client.py
import os from design_patterns.factory.creators.transport_creators import TransportationCreator, TruckCreator def consumer(creator: TransportationCreator): """Consumer Transportation client """ transport = creator.create_transport() print(f"This is how my package will be delivered: {transport.deli...
amommendes/python-fluente
design_patterns/builder/client.py
<reponame>amommendes/python-fluente<gh_stars>0 from design_patterns.builder.car.car_builder import CarBuilder, ManualBuilder from design_patterns.builder.car_director.director import CarDirector colors = {"red": "\033[1;1;31m", "blue_background": "\033[1;0;46m", "bold": "\033[1;0;1m", "normal": "\033[1;40;0m" } if _...
amommendes/python-fluente
playground/playing.py
<filename>playground/playing.py class Animal(): def __init__(self, name="Unicorn"): self.name = name def eat(self): return "I'm can eat anything" class Dog(Animal): def __init__(self, name = None): super().__init__() self.superName = self.name self.Instance...
amommendes/python-fluente
design_patterns/client_furniture.py
<gh_stars>0 from design_patterns.abstract_factory.furniture_factory import FurnitureAbstractFactory from design_patterns.abstract_factory.concretes.modern_concretes.modern_furniture import ModernFurniture from design_patterns.abstract_factory.concretes.victorian_concretes.victorian_furniture import VictorianFurniture ...
amommendes/python-fluente
design_patterns/abstract_factory/abstract_products/coffe_table.py
<gh_stars>0 from abc import ABC,abstractmethod class CoffeTable(ABC): @abstractmethod def size(self): pass @abstractmethod def color(self): pass
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/task.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/config/vars.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/tag.py
<filename>sdk/python/pulumi_snowflake/tag.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optio...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/user_public_keys.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
examples/user/py/__main__.py
"""A Python Pulumi program""" import pulumi import pulumi_snowflake as snowflake user = snowflake.User("py-user") pulumi.export("username", user.name)
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/stage.py
<filename>sdk/python/pulumi_snowflake/stage.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Opt...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/_inputs.py
<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/scim_integration.py
<reponame>Hacker0x01/pulumi-snowflake<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_warehouses.py
<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/api_integration.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/procedure_grant.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/network_policy.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_databases.py
<filename>sdk/python/pulumi_snowflake/get_databases.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapp...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_pipes.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_system_get_private_link_config.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_external_tables.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/storage_integration.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_functions.py
<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_storage_integrations.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/oauth_integration.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/schema.py
<filename>sdk/python/pulumi_snowflake/schema.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Op...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_tasks.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/network_policy_attachment.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_schemas.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_resource_monitors.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/external_oauth_integration.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_system_generate_scim_access_token.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/resource_monitor.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_current_account.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/procedure.py
<filename>sdk/python/pulumi_snowflake/procedure.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping,...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_database.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/managed_account.py
<filename>sdk/python/pulumi_snowflake/managed_account.py<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/function.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/external_table_grant.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/row_access_policy.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/resource_monitor_grant.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/materialized_view.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_stages.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/masking_policy.py
<filename>sdk/python/pulumi_snowflake/masking_policy.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Map...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/external_function.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_row_access_policies.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_external_functions.py
<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/saml_integration.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/file_format.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_masking_policies.py
<filename>sdk/python/pulumi_snowflake/get_masking_policies.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import An...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/pipe.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/role_grants.py
<reponame>Hacker0x01/pulumi-snowflake # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Se...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/stream.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/warehouse.py
<filename>sdk/python/pulumi_snowflake/warehouse.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping,...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_materialized_views.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/user.py
<filename>sdk/python/pulumi_snowflake/user.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Opti...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/external_table.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/table.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import ...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/get_system_get_aws_sns_iam_policy.py
<gh_stars>1-10 # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/provider.py
<reponame>Hacker0x01/pulumi-snowflake<filename>sdk/python/pulumi_snowflake/provider.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runt...
Hacker0x01/pulumi-snowflake
sdk/python/pulumi_snowflake/outputs.py
<filename>sdk/python/pulumi_snowflake/outputs.py # coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, O...
orancanoren/piegon
client.py
<reponame>orancanoren/piegon from cryptoran import blockcipher, keyexchange import socket import select import threading import sys, os from PigeonConnection import PigeonConnection class PigeonClient(PigeonConnection): def __init__(self, serverIP: str, serverPort: int, messageHandler, disconnectionHa...
orancanoren/piegon
server.py
<gh_stars>0 from cryptoran import blockcipher, keyexchange from PigeonConnection import PigeonConnection import socket, select, sys, threading class PigeonServer(PigeonConnection): ''' Multithreaded TCP socket server. Provides encrypted communication ''' def __init__(self, ip: str, port: int, messageH...
orancanoren/piegon
PigeonConnection.py
<gh_stars>0 import pickle from cryptoran import blockcipher import socket from abc import abstractclassmethod, ABC class PigeonConnection(ABC): def __init__(self,ip, port, messageHandler): self.ip = ip self.port = port self.messageHandler = messageHandler super().__init__() def...
orancanoren/piegon
main.py
import server, client def banner(): print(''' ____ ____ ____ ____ ____ ____ ____ ____ ____ ||e |||s |||p |||i |||o |||n |||a |||g |||e || ||__|||__|||__|||__|||__|||__|||__|||__|||__|| |/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\| ''')
LiderMyHand/A2J
src_train/anchor.py
<gh_stars>100-1000 import numpy as np import torch import torch.nn as nn import torch.nn.functional as F def generate_anchors(P_h=None, P_w=None): if P_h is None: P_h = np.array([2,6,10,14]) if P_w is None: P_w = np.array([2,6,10,14]) num_anchors = len(P_h) * len(P_h) ...
LiderMyHand/A2J
data/itop_side/data_preprosess.py
import numpy as np import matplotlib.image as mpimg import h5py import os import pandas as pd import scipy.io as scio import matplotlib.pyplot as plt import math import time import cv2 depth_maps = h5py.File('/dataspace/zhangboshen/ITOP_LSTM/ITOP_NewBaseline/data/top_train/ITOP_top_train_depth_map.h5', 'r...
LiderMyHand/A2J
src/k2hpd.py
<filename>src/k2hpd.py import cv2 import torch import torch.utils.data from torch.autograd import Variable import scipy.io as scio import numpy as np import os from PIL import Image import model as model import anchor as anchor from tqdm import tqdm os.environ["CUDA_VISIBLE_DEVICES"] = "2" # DataHyper...
LiderMyHand/A2J
src/itop_side.py
<gh_stars>100-1000 import cv2 import torch import torch.nn as nn from torch.autograd import Variable import torch.utils.data import numpy as np import scipy.io as scio import os from PIL import Image import model as model import anchor as anchor from tqdm import tqdm os.environ["CUDA_VISIBLE_DEVICES"] = "...
LiderMyHand/A2J
data/k2hpd/data_preprosess.py
import numpy as np import pandas as pd import h5py import cv2 import scipy.io as scio from PIL import Image import matplotlib.pyplot as plt #train = pd.read_csv('./train_annos.txt') trainList = [] with open('./test_annos.txt') as f: #line = f.readline() #while line: for line in f.readlines()...
mlvc-lab/SR-NAS
src/model/enas.py
<filename>src/model/enas.py import torch import torch.nn as nn import torch.nn.functional as F from model.operationsbn import * from model.genotypes import COMPACT_PRIMITIVES, COMPACT_PRIMITIVES_UPSAMPLING from model.genotypes import Genotype import model.utils as utils import numpy as np from model.utils impor...
rebeccagettys/NitrogenaseFinder
visualization.py
<gh_stars>1-10 #This code creates a visualization for the nitrogenase_finder.py code, which finds nitrogenase matches from the gene_finder.py code. Bars in this simulation are contigs, #and the bars drawn on top of them. Hover the mouse over one of these bars to find the percentage match. #Type the threshold for DNA ac...
rebeccagettys/NitrogenaseFinder
distance.py
<reponame>rebeccagettys/NitrogenaseFinder<filename>distance.py<gh_stars>1-10 import doctest doctest.testmod() def levenshtein (a_full,b_full, a_start=0, b_start= 0, known_memo=None): """This function calculates the Levenshtein distance between two iterables a: first string b: second string a_start: the...
rebeccagettys/NitrogenaseFinder
gene_finder.py
# -*- coding: utf-8 -*- """ Last updated: April 15, 2016 Find Nitrogenase @author: <NAME>, <NAME>, <NAME> """ def get_complement(nucleotide): """ Returns the complementary nucleotide nucleotide: a nucleotide (A, C, G, or T) represented as a string returns: the complementary nucleotide >>> g...
mikeyjarvis19/dupe-file-cleaner
dupes.py
<gh_stars>0 import pathlib import re import fire import shutil import logging regex_pattern = r".+\(\d\)" regex = re.compile(regex_pattern) log_location = pathlib.Path(__file__).parent.absolute() / "duplicates.log" logging.basicConfig(filename=str(log_location),level=logging.INFO) def bytes_to_mb(bytes): return b...
tarishij17/vpnhelper
freevpn.py
<gh_stars>0 import re import requests from bs4 import BeautifulSoup __author__ = "wrathdev GGSIPUResultTracker orekihotaro demonnezuko var<NAME>" RE_PASS = re.compile(r'(<li><strong>Password:<\/strong>)(?P<password>[^<]+)(<\/li>)') TEXT_ONLINE = 'Online' VPNS = ('me', 'eu', 'se', 'im', 'it', 'be') def get_passwor...
Joshua-Devadas/Image-Captioning
model.py
import torch import torch.nn as nn import torchvision.models as models from torch.nn.utils.rnn import pack_padded_sequence class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameter...
EugeneSqr/carrierx-python
carrierx/client.py
<filename>carrierx/client.py from carrierx.base.rest_client import RestClient, RestConnection from carrierx.resources import core from carrierx.resources import mediator from carrierx.resources import flexml from carrierx.exceptions import AuthNotProvidedException class CoreClient(RestClient): def __init__(self, ...
EugeneSqr/carrierx-python
carrierx/resources/core/shortener/links.py
<filename>carrierx/resources/core/shortener/links.py from carrierx.resources.base import ItemResource, ListResource class Link(ItemResource): endpoint_path = 'shortener/links' create_fields = ( 'domain_sid', 'destination_url', 'mode', 'maximum_ttl', 'short_name', ...
EugeneSqr/carrierx-python
carrierx/resources/mediator/__init__.py
<filename>carrierx/resources/mediator/__init__.py<gh_stars>0 from carrierx.resources.mediator.bindings import Binding, Bindings from carrierx.resources.mediator.dids import Did, Dids
EugeneSqr/carrierx-python
carrierx/resources/mediator/dids.py
<reponame>EugeneSqr/carrierx-python from carrierx.resources.base import ItemResource, ListResource class Did(ItemResource): wrapper = True endpoint_path = 'dids' create_fields = () retrieve_fields = ( 'did_sid', 'phonenumber', 'account_sid', 'country_code', 'in_...
EugeneSqr/carrierx-python
carrierx/resources/core/shortener/domains.py
from carrierx.resources.base import ItemResource, ListResource class Domain(ItemResource): wrapper = False endpoint_path = 'shortener/domains' create_fields = ( 'domain_name', 'partner_sid', 'scope', 'minimum_length', 'not_found_page', 'not_found_mode', ...
EugeneSqr/carrierx-python
carrierx/exceptions.py
<gh_stars>0 class CxException(Exception): def __init__(self, message=None): super().__init__(message) self.message = message class ApiMultipleFoundException(CxException): pass class ApiNotFoundException(CxException): pass class ApiPermissionException(CxException): pass class ApiS...
EugeneSqr/carrierx-python
carrierx/resources/core/__init__.py
from carrierx.resources.core import sms from carrierx.resources.core import storage from carrierx.resources.core import shortener from carrierx.resources.core.endpoints import Endpoint, Endpoints
EugeneSqr/carrierx-python
carrierx/resources/flexml/calls.py
from carrierx.resources.base import ItemResource, ListResource class Call(ItemResource): wrapper = False endpoint_path = 'calls' create_fields = ( 'calling_did', 'called_did', 'url', 'method', 'status_callback_url', 'status_callback_method', 'attribu...
EugeneSqr/carrierx-python
carrierx/resources/core/storage/__init__.py
from carrierx.resources.core.storage.containers import Container, Containers from carrierx.resources.core.storage.files import File, Files
EugeneSqr/carrierx-python
carrierx/resources/flexml/__init__.py
<reponame>EugeneSqr/carrierx-python<gh_stars>0 from carrierx.resources.flexml.calls import Call, Calls from carrierx.resources.flexml.dids import Did, Dids
EugeneSqr/carrierx-python
carrierx/resources/base.py
import json import logging import requests from carrierx.base.rest_client import RestClient from carrierx.exceptions import ( ApiNotFoundException, ApiPermissionException, ApiServerError, ApiValueError, ) logger = logging.getLogger() def _validate_status_code(r): if r.status_code == 200: ...
EugeneSqr/carrierx-python
carrierx/resources/core/shortener/__init__.py
from carrierx.resources.core.shortener.domains import Domain, Domains from carrierx.resources.core.shortener.links import Link, Links