commit 12b2fe0b3334db9a8acc8e65846ab2fbfdfea878 Author: Igor Elpin Date: Tue Aug 16 12:54:51 2022 +0300 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc7463b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +# docker build -t ielpin.ru/logovo:latest . +FROM python:3.10.6-slim-buster +WORKDIR /code + +COPY . /code/ + +RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt + +CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..6c6e987 --- /dev/null +++ b/README.md @@ -0,0 +1,92 @@ +# Resume + + + +## Getting started + +To make it easy for you to get started with GitLab, here's a list of recommended next steps. + +Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! + +## Add your files + +- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files +- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: + +``` +cd existing_repo +git remote add origin http://192.168.0.200/i.elpin/resume.git +git branch -M main +git push -uf origin main +``` + +## Integrate with your tools + +- [ ] [Set up project integrations](http://192.168.0.200/i.elpin/resume/-/settings/integrations) + +## Collaborate with your team + +- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) +- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) +- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) +- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) +- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) + +## Test and Deploy + +Use the built-in continuous integration in GitLab. + +- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) +- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) +- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) +- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) +- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) + +*** + +# Editing this README + +When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. + +## Suggestions for a good README +Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. + +## Name +Choose a self-explaining name for your project. + +## Description +Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. + +## Badges +On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. + +## Visuals +Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. + +## Installation +Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. + +## Usage +Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. + +## Support +Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. + +## Roadmap +If you have ideas for releases in the future, it is a good idea to list them in the README. + +## Contributing +State if you are open to contributions and what your requirements are for accepting them. + +For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. + +You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. + +## Authors and acknowledgment +Show your appreciation to those who have contributed to the project. + +## License +For open source projects, say how it is licensed. + +## Project status +If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. diff --git a/__pycache__/app.cpython-310.pyc b/__pycache__/app.cpython-310.pyc new file mode 100644 index 0000000..0b1f7b2 Binary files /dev/null and b/__pycache__/app.cpython-310.pyc differ diff --git a/app.py b/app.py new file mode 100644 index 0000000..e46e95e --- /dev/null +++ b/app.py @@ -0,0 +1,36 @@ +from fastapi import FastAPI,Request +from fastapi.middleware.cors import CORSMiddleware +from fastapi.responses import HTMLResponse +from fastapi.staticfiles import StaticFiles +from fastapi.templating import Jinja2Templates + +def get_application(): + _app = FastAPI(debug=False,title="MyHome",docs_url=None,redoc_url=None) + + _app.add_middleware( + CORSMiddleware, + allow_origins=["*"], + allow_credentials=True, + allow_methods=["*"], + allow_headers=["*"], + ) + return _app + +app=get_application() + +app.mount("/static",StaticFiles(directory="static"),name="static") +templates = Jinja2Templates(directory="templates")\ + +## TODO Сделать полноценный микроблок +@app.get("/") +def index(request:Request): + return templates.TemplateResponse("index.html",{"request":request}) + +@app.get("/resume") +def resume(request:Request): + with open("cv.py") as cv: + return templates.TemplateResponse("resume.html",{"request":request,"cv":cv.read()}) + +@app.get("/pycoral") +def index(request:Request): + return templates.TemplateResponse("pycoral.html",{"request":request}) diff --git a/companies/__init__.py b/companies/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/companies/__pycache__/__init__.cpython-310.pyc b/companies/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..88658ea Binary files /dev/null and b/companies/__pycache__/__init__.cpython-310.pyc differ diff --git a/companies/infowatch/__init__.py b/companies/infowatch/__init__.py new file mode 100644 index 0000000..f97b015 --- /dev/null +++ b/companies/infowatch/__init__.py @@ -0,0 +1,8 @@ +from world import AbstractCompany +from .jobs import * +class Infowatch(AbstractCompany): + name="ЗАО Инфовотч" + description=f"""Российская компания, специализирующаяся на информационной безопасности в корпоративном секторе: + защите корпораций от утечек информации и целевых атак извне.""" + + \ No newline at end of file diff --git a/companies/infowatch/__pycache__/__init__.cpython-310.pyc b/companies/infowatch/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..604042d Binary files /dev/null and b/companies/infowatch/__pycache__/__init__.cpython-310.pyc differ diff --git a/companies/infowatch/__pycache__/jobs.cpython-310.pyc b/companies/infowatch/__pycache__/jobs.cpython-310.pyc new file mode 100644 index 0000000..ed85b33 Binary files /dev/null and b/companies/infowatch/__pycache__/jobs.cpython-310.pyc differ diff --git a/companies/infowatch/jobs.py b/companies/infowatch/jobs.py new file mode 100644 index 0000000..ab88af2 --- /dev/null +++ b/companies/infowatch/jobs.py @@ -0,0 +1,45 @@ +from world import AbstractJob + +class ImplementationEngineer(AbstractJob): + position="Инженер внедрения" + duties=f""" + - Установка прикладного ПО компании + - Настройка серверов и прикладного ПО под требования заказчика + - Проведение работ по настройке инфраструктуры заказчика для интеграции ПО + - Аудит работы ПО, идентификация и устранение проблем. + """ + +class MiddleImplementationEngineer(ImplementationEngineer): + position="Старший инженер внедрения" + duties=f""" + - Разработка проектной документации + - Установка прикладного ПО компании + - Настройка серверов и прикладного ПО под требования заказчика + - Проведение работ по настройке инфраструктуры заказчика для интеграции ПО в инфраструктуру компании заказчика. + - Аудит работы ПО, идентификация и устранение проблем. + - Оптимизация ПО на проектах с высокой нагрузкой. + - Проведений демонстраций и предварительного обучения сотрудников заказчика функционалу продукта. + """ + +class SeniorImplementationEngineer(MiddleImplementationEngineer): + position="Ведущий инженер внедрения" + duties=f""" + - Разработка проектной документации + - Установка прикладного ПО компании + - Настройка серверов и прикладного ПО под требования заказчика + - Разработал несколько встраиваемых утилит для использования в основном продукте. + - Обучение стажеров + - Проведение работ по настройке инфраструктуры заказчика для интеграции ПО в инфраструктуру компании заказчика. + - Разработка дополнительного функционала для модуля анализа и принятия решений на lua + - Аудит работы ПО, идентификация и устранение проблем. + - Оптимизация ПО на проектах с высокой нагрузкой. + - Проведений демонстраций и предварительного обучения сотрудников заказчика функционалу продукта. + """ + +class TeamLead(AbstractJob): + position="Руководитель группы персональной техподдержки" + duties=f""" + - Техническое сопровождение клиентов по техническим вопросам продуктов + - Организация и контроль работы группы персонального технического обслуживания (3-4 человека) + - Проработка вопросов по автоматизации бизнес-процессов группы (обработка заявок, контроль SLA, подсчет KPI) + """ \ No newline at end of file diff --git a/companies/performancelab/__init__.py b/companies/performancelab/__init__.py new file mode 100644 index 0000000..610167b --- /dev/null +++ b/companies/performancelab/__init__.py @@ -0,0 +1,8 @@ +from world import AbstractCompany +from .jobs import * +class PerformanceLab(AbstractCompany): + name="ООО Перформанс Лабс" + description=f"Российская компания, сервис-провайдер в области тестирование программного обеспечения." + + + \ No newline at end of file diff --git a/companies/performancelab/__pycache__/__init__.cpython-310.pyc b/companies/performancelab/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..bee694b Binary files /dev/null and b/companies/performancelab/__pycache__/__init__.cpython-310.pyc differ diff --git a/companies/performancelab/__pycache__/jobs.cpython-310.pyc b/companies/performancelab/__pycache__/jobs.cpython-310.pyc new file mode 100644 index 0000000..00ccb21 Binary files /dev/null and b/companies/performancelab/__pycache__/jobs.cpython-310.pyc differ diff --git a/companies/performancelab/jobs.py b/companies/performancelab/jobs.py new file mode 100644 index 0000000..75e6222 --- /dev/null +++ b/companies/performancelab/jobs.py @@ -0,0 +1,11 @@ +from world import AbstractJob + +class PerformanceEngineer(AbstractJob): + position="Инженер по нагрузочному тестированию" + duties=f""" + - Анализ работы тестируемых систем + - Разработка нагрузочных тестов + - Проведение нагрузочного тестирования + - Поиск узких мест (bottlenecks) + """ + \ No newline at end of file diff --git a/companies/visionlabs/__init__.py b/companies/visionlabs/__init__.py new file mode 100644 index 0000000..85d4586 --- /dev/null +++ b/companies/visionlabs/__init__.py @@ -0,0 +1,8 @@ +from world import AbstractCompany +from .jobs import * +class Visionlabs(AbstractCompany): + name="ООО ВИЖНЛАБС" + description=f"""Российская компания, специализирующаяся на создании продуктов и решений в области распознавания лиц и объектов, + дополненной и виртуальной реальности.""" + + \ No newline at end of file diff --git a/companies/visionlabs/__pycache__/__init__.cpython-310.pyc b/companies/visionlabs/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..bb2c991 Binary files /dev/null and b/companies/visionlabs/__pycache__/__init__.cpython-310.pyc differ diff --git a/companies/visionlabs/__pycache__/jobs.cpython-310.pyc b/companies/visionlabs/__pycache__/jobs.cpython-310.pyc new file mode 100644 index 0000000..e081065 Binary files /dev/null and b/companies/visionlabs/__pycache__/jobs.cpython-310.pyc differ diff --git a/companies/visionlabs/jobs.py b/companies/visionlabs/jobs.py new file mode 100644 index 0000000..3f18587 --- /dev/null +++ b/companies/visionlabs/jobs.py @@ -0,0 +1,20 @@ +from world import AbstractJob + +class DevOpsEngineer(AbstractJob): + position="Devops" + duties=f""" + - Обеспечение процесса сборки и тестирования в Gitlab + - Сборка инфраструктурных и продакшн образов Docker + - + """ + +class ServiceEngineer(AbstractJob): + position="Ведущий сервисный инженер" + duties=f""" + - Внедрение продуктов компании + - Разработка интеграционных решений + - Проектирование отказоустойчивых архитектур под высокие нагрузки (кластер и балансировка - связка nginx, haproxy,Redis,rabbitmq) + - Мониторинг на стэке TICK (Influxdata) Telegraf ,influxdb,Grafana. Алертинг через telegram бота. + - Сборка тестовых и демонстрационных решений для клиентов в docker + - Разработка тестовых и вспомогательных утилит для сбора датасета с камер (Astra Pro S и Axis) + """ \ No newline at end of file diff --git a/cv.py b/cv.py new file mode 100644 index 0000000..73d2df3 --- /dev/null +++ b/cv.py @@ -0,0 +1,46 @@ + +""" +Шуточное кодовое представление моего резюме. Enjoy! +""" +from humans import Sex +from employee.applicants import Applicant +from companies.performancelab import PerformanceLab,PerformanceEngineer +from companies.infowatch import ( + Infowatch, + ImplementationEngineer, + MiddleImplementationEngineer, + SeniorImplementationEngineer, + TeamLead + ) + +from companies.visionlabs import Visionlabs,ServiceEngineer,DevOpsEngineer + +me = Applicant( first_name="Игорь", + last_name="Ельпин", + sex=Sex.MALE, + birthday="16-11-1989") + +me.discover_company(PerformanceLab) +me.enter_job(PerformanceEngineer( + start="08.2011", + end="10.2012")) +me.discover_company(Infowatch) +me.enter_job(ImplementationEngineer( + start="10.2012", + end="03.2014")) +me.enter_job(MiddleImplementationEngineer( + start="03.2014", + end="04.2016")) +me.enter_job(SeniorImplementationEngineer( + start="04.2016", + end="09.2018")) +me.enter_job(TeamLead( + start="09.2018", + end="09.2019")) +me.discover_company(Visionlabs) +me.enter_job(ServiceEngineer( + start="09.2019", + end="06.2020")) +me.enter_job(DevOpsEngineer( + start="09.2020")) +me.represent() \ No newline at end of file diff --git a/employee/__init__.py b/employee/__init__.py new file mode 100644 index 0000000..fa7fce3 --- /dev/null +++ b/employee/__init__.py @@ -0,0 +1,26 @@ +from humans import AbstractHuman + + +class Employee(AbstractHuman): + known_companies=list() + current_company=None + expirience=list() + achivements=list() + + def enter_job(self,job): + description=f""" + {job.start} -> {job.end}: + {repr(self.current_company)} - {job.position} + Мои обязанности и достижения: + {job.duties} + ============================= + {self.achivements} + """ + self.expirience.append(description) + + @property + def summary(self): + return "\n".join(self.expirience) + def represent(self) -> None: + self.say(self.about()) + self.say(self.summary) if self.summary else self.say("Немного занят, отвечу позднее.") diff --git a/employee/__pycache__/__init__.cpython-310.pyc b/employee/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..b20794c Binary files /dev/null and b/employee/__pycache__/__init__.cpython-310.pyc differ diff --git a/employee/__pycache__/applicants.cpython-310.pyc b/employee/__pycache__/applicants.cpython-310.pyc new file mode 100644 index 0000000..4afdc3b Binary files /dev/null and b/employee/__pycache__/applicants.cpython-310.pyc differ diff --git a/employee/applicants.py b/employee/applicants.py new file mode 100644 index 0000000..8fe1f3d --- /dev/null +++ b/employee/applicants.py @@ -0,0 +1,8 @@ +from . import Employee + +class Applicant(Employee): + looking_for_jobs=True + + def discover_company(self,company): + self.known_companies.append(company.name) + self.current_company=company.name \ No newline at end of file diff --git a/humans/__init__.py b/humans/__init__.py new file mode 100644 index 0000000..d7bb016 --- /dev/null +++ b/humans/__init__.py @@ -0,0 +1,41 @@ +from datetime import date,datetime +from enum import Enum + + +class Sex(Enum): + MALE="Мужчина", + FEMALE="Женщина" + + def __repr__(self) -> str: + return f"{self.value}" + +class AbstractHuman: + def __init__(self,first_name:str,last_name:str,sex:Sex,birthday:str) -> None: + self.first_name=first_name + self.last_name=last_name + self.sex=sex + self.birthday=datetime.strptime(birthday, "%d-%m-%Y").date() + + @property + def age(self) -> int: + age=datetime.now().year-self.birthday.year + if age>0: + return int(age) + else: + raise "Мамочка! Меня еще не родили" + + + def _eat(self): + pass + + def _sleep(self): + pass + + def _play(self): + pass + + def say(self,speach: str) -> None: + print(f"{self.first_name} {self.last_name}: {speach}") + + def about(self): + return f"{self.first_name} {self.last_name}. {repr(self.sex)} {self.birthday} ({self.age} полных лет)" diff --git a/humans/__pycache__/__init__.cpython-310.pyc b/humans/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..5b9dea8 Binary files /dev/null and b/humans/__pycache__/__init__.cpython-310.pyc differ diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2ace517 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +fastapi +uvicorn +jinja2 diff --git a/static/prism.css b/static/prism.css new file mode 100644 index 0000000..4351872 --- /dev/null +++ b/static/prism.css @@ -0,0 +1,3 @@ +/* PrismJS 1.28.0 +https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+python */ +code[class*=language-],pre[class*=language-]{color:#f8f8f2;background:0 0;text-shadow:0 1px rgba(0,0,0,.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto;border-radius:.3em}:not(pre)>code[class*=language-],pre[class*=language-]{background:#272822}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#8292a2}.token.punctuation{color:#f8f8f2}.token.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.symbol,.token.tag{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#a6e22e}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.class-name,.token.function{color:#e6db74}.token.keyword{color:#66d9ef}.token.important,.token.regex{color:#fd971f}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help} diff --git a/static/prism.js b/static/prism.js new file mode 100644 index 0000000..0f6149c --- /dev/null +++ b/static/prism.js @@ -0,0 +1,5 @@ +/* PrismJS 1.28.0 +https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+python */ +var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(e){var n=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof i?new i(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/=g.reach);A+=w.value.length,w=w.next){var E=w.value;if(n.length>e.length)return;if(!(E instanceof i)){var P,L=1;if(y){if(!(P=l(b,A,e,m))||P.index>=e.length)break;var S=P.index,O=P.index+P[0].length,j=A;for(j+=w.value.length;S>=j;)j+=(w=w.next).value.length;if(A=j-=w.value.length,w.value instanceof i)continue;for(var C=w;C!==n.tail&&(jg.reach&&(g.reach=W);var z=w.prev;if(_&&(z=u(n,z,_),A+=_.length),c(n,z,L),w=u(n,z,new i(f,p?a.tokenize(N,p):N,k,N)),M&&u(n,w,M),L>1){var I={cause:f+","+d,reach:W};o(e,n,t,w.prev,A,I),g&&I.reach>g.reach&&(g.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function u(e,n,t){var r=n.next,a={value:t,prev:n,next:r};return n.next=a,r.prev=a,e.length++,a}function c(e,n,t){for(var r=n.next,a=0;a"+i.content+""},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",(function(n){var t=JSON.parse(n.data),r=t.language,i=t.code,l=t.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),l&&e.close()}),!1),a):a;var g=a.util.currentScript();function f(){a.manual||a.highlightAll()}if(g&&(a.filename=g.src,g.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var h=document.readyState;"loading"===h||"interactive"===h&&g&&g.defer?document.addEventListener("DOMContentLoaded",f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return a}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); +Prism.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(a,e){var s={};s["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:Prism.languages[e]},s.cdata=/^$/i;var t={"included-cdata":{pattern://i,inside:s}};t["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var n={};n[a]={pattern:RegExp("(<__[^>]*>)(?:))*\\]\\]>|(?!)".replace(/__/g,(function(){return a})),"i"),lookbehind:!0,greedy:!0,inside:t},Prism.languages.insertBefore("markup","cdata",n)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(a,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp("(^|[\"'\\s])(?:"+a+")\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^\\s'\">=]+(?=[\\s>]))","i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml; +Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python; diff --git a/static/rabbit.png b/static/rabbit.png new file mode 100644 index 0000000..e858f63 Binary files /dev/null and b/static/rabbit.png differ diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..b825a9f --- /dev/null +++ b/templates/index.html @@ -0,0 +1,43 @@ + + + Логово Игоря + + + + + + + +
+
+ +
+
+    + +
+            
+                def show_my_projects():
+                    return [project for project in projects if project.sense is not None]
+            
+            
+             `>>> class project Resume``
+             `>>> class project PYCORAL_CCTV`
+        
+ + + \ No newline at end of file diff --git a/templates/pycoral.html b/templates/pycoral.html new file mode 100644 index 0000000..d2d9b51 --- /dev/null +++ b/templates/pycoral.html @@ -0,0 +1,36 @@ + + + Логово Игоря + + + + + + +
+
(Google Coral + RPi 4)*RTSPCam = CCTV? +
+    +
+            
+                def pycoral_cctv(pycoral_cctv):
+                    return pycoral_cctv.story
+            
+            

+ Моя малинка 4 верой и правдой служила мне как детектор движения на даче в деревне. + Только вот одна была с ней беда: + motioneye и под капотом motion безбожно срабатывали буквально на все - дождь снег ветер. + + Как-то вспомнил что давно хотел присмотреться к ускорителю Google Coral. + Пока заказанный свисток отправлялся со склада в Мск, я думал как мне его использовать. + +

+
+
+ + \ No newline at end of file diff --git a/templates/resume.html b/templates/resume.html new file mode 100644 index 0000000..d15ddf9 --- /dev/null +++ b/templates/resume.html @@ -0,0 +1,26 @@ + + + Логово Игоря + + + + + + +
+
Wake up,HR... Follow the white rabbit... +
+    +
+            
+                {{cv}}
+            
+        
+
+ + \ No newline at end of file diff --git a/world/__init__.py b/world/__init__.py new file mode 100644 index 0000000..644b4b0 --- /dev/null +++ b/world/__init__.py @@ -0,0 +1,18 @@ +from datetime import date,datetime,timedelta + +class AbstractCompany: + def __init__(self,name,description) -> None: + self.name=name + self.description=description + + def __repr__(self) -> str: + return f"{self.name}\n{self.description}" + +class AbstractJob: + def __init__(self,start:str,end:str=None) -> None: + self.start=datetime.strptime(start, "%m.%Y").date() + if end: + self.end=datetime.strptime(end, "%m.%Y").date() + else: + self.end=datetime.now().date() + self.delta=(datetime.now().date()-self.end) diff --git a/world/__pycache__/__init__.cpython-310.pyc b/world/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..cabc3e8 Binary files /dev/null and b/world/__pycache__/__init__.cpython-310.pyc differ