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 typing import Union | |
from fastapi import FastAPI | |
from bloom.container import UseCases | |
use_cases = UseCases() | |
app = FastAPI() | |
def pos_to_dict(row): |
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 Brasserie { | |
} | |
enum EtatBrasserie { | |
PROJET | |
PILOTE | |
AUTONOME | |
INACTIF | |
RETIRE |
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 asyncio | |
import os | |
import io | |
import logging | |
import time | |
logging.basicConfig(level=logging.DEBUG) | |
logger = logging.getLogger(__name__) |
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 jinja2 import Environment, FileSystemLoader | |
env = Environment(loader=FileSystemLoader('theme/templates'), extensions=['jinja2.ext.i18n']) | |
template=env.get_template('base.html') | |
print(template.render()) |
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
<div ng-app="MyApp"> | |
<h1>Zero padding filter</h1> | |
<div> | |
<input type="text" ng-model="ztext" placeholder="Type some text ..." /> | |
</div> | |
<div> | |
<h2>Result:</h2> | |
<p>{{ztext | zpad:4}}</p> | |
</div | |
</div> |