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
| Phase 1: Foundation (Weeks 1-2) | |
| User Trust Score System | |
| Objective: Build credibility profiles for each user | |
| Components: | |
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
| @ setlocal enableextensions | |
| @ cd /d "%~dp0" | |
| for /R %%f in (*.exe, *.dll) do ( | |
| netsh advfirewall firewall add rule name="Blocked: %%f" dir=out program="%%f" action=block | |
| netsh advfirewall firewall add rule name="Blocked: %%f" dir=in program="%%f" action=block | |
| ) |
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 django import forms | |
| from django.contrib import admin | |
| from django.contrib.admin.widgets import AutocompleteSelect | |
| from django.forms import ModelForm | |
| from django.urls import reverse | |
| class BaseModelForm(ModelForm): | |
| def __init__(self, *args, load_related_only=False, **kwargs): | |
| super().__init__(*args, **kwargs) |
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 re | |
| import sys | |
| def str2txt(srt): | |
| lines = srt.splitlines() | |
| lines = [line for line in lines if (not line.isdigit() and '-->' not in line) and line.strip() !=''] | |
| final_lines = [] | |
| temp_lines = [] | |
| for line in lines: |