git log -p -- /path/to/file
Выводит построчно историю изменений в файле
Цель этих соглашений - избежать споров, размышлений и, таким образом, сэкономить мыслетопливо. Бонусом идет опрятный, единообразный код и аккуратный репозиторий =)
- Black для форматирования кода. https://black.readthedocs.io/en/stable/index.html
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install wheel
pip install -r requirements.txt
This file contains 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
# create wired connection for NAS | |
# address: 192.168.1.1 | |
# netmask: 255.255.255.0 | |
# nas web-ui: 192.168.1.2:8080 admin t...3 | |
# setup NAS | |
sudo apt install -y nfs-common | |
systemctl status nfs-common # если сервис запущен, то всё хорошо. Если нет, то проверяем файл сервиса: |
This file contains 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
for _ in range(100): | |
print() | |
import os | |
import subprocess | |
import json | |
import bpy | |
def detect_cuts(movie1, movie2): |
This file contains 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
Предопределенные значения: | |
CBaseArchetypeDef_flag - число | |
CEntityDef_flag - число | |
texture_dict - строка (? в ТЗ написано "название директории текстур". Это просто имя папки или путь к ней?) | |
interior_name - строка | |
time_mod - ? не понимаю что за тип (строка? число?) и где используется | |
xml_name - строка | |
(Хорошо бы придумать для переменных выше какие-то адекватные значения по умолчанию) |
This file contains 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 string import Template | |
main = Template( | |
"""<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<CMapTypes> | |
<extensions/> | |
<archetypes> | |
${CBaseArchetypeDef} | |
${CMloArchetypeDef} |
This file contains 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 mathutils import ( | |
Matrix, | |
Vector, | |
) | |
from febd.polygons import ( | |
fill_polygons_from_vertex_list, | |
create_polys, | |
) | |
from febd.vertices import ( | |
extrude_vertices_down, |
This file contains 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
{ | |
"width": 6.5, | |
"height": 4.0, | |
"margin_x": 0.5, | |
"margin_y": 0.5, | |
"space_between": 0.6, | |
"window_shapes": [{ | |
"type": "ROUND", | |
"width": 0.5, | |
"height": 1.75, |
This file contains 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 json | |
from math import ( | |
acos, | |
atan2, | |
cos, | |
radians, | |
sin, | |
) | |
import bpy |