Skip to content

Instantly share code, notes, and snippets.

View Mazday21's full-sized avatar

Dmitriy Kulyasov Mazday21

  • Lipetsk
View GitHub Profile
export default function objectToString(obj, indent = '') {
const lines = ['{'];
const entries = Object.entries(obj);
let nestedIndentDiff = '';
entries.forEach(([key, value], index) => {
if (typeof value === 'object' && value !== null) {
let nestedIndent = `${indent} `;
if (key.startsWith('+') || key.startsWith('-')) {
nestedIndent = `${indent} `;
export default function objectToString(obj, indent = '') {
const lines = ['{'];
const entries = Object.entries(obj);
entries.forEach(([key, value], index) => {
if (typeof value === 'object' && value !== null) {
const nestedIndent = `${indent} `;
const nestedLines = objectToString(value, nestedIndent);
lines.push(`${indent} ${key}: ${nestedLines}`);
} else {
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");html{-webkit-box-sizing:border-box;box-sizing:border-box}*,*::after,*::before{-webkit-box-sizing:inherit;box-sizing:inherit}body{font-family:"Montserrat", sans-serif;font-weight:400;background-color:#fff}button,button:active,button:focus{outline:none}.btn{color:#fff;text-decoration:none;font-style:normal;font-weight:normal;font-size:18px;line-height:22px;text-transform:uppercase;display:inline-block;width:210px;height:50px;background-color:#005890;border-radius:25px;text-align:center;padding-top:15px;-webkit-transition:all 0.3s;transition:all 0.3s}.btn:hover{background-color:#0780cd}.container{max-width:1470px;margin:0 auto;padding:0 15px}.header__topline{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:10px}.header__topline .main-menu__items{p
Поддержка старого сайта с 9.2022 по 4.2023 - 7 месяцев
Изменение старого сайта для увеличения привлекательности, получения целевых клиентов; добавление на сайт товаров с ценами
Проведение SEO оптимизации сайта для поисковых систем яндекс, google
Подбор и изменение хостинга на лучший по соотношению цена - качество - свободное место
Создание дружественного сайта - партнера на том же хостинге, который продвигает экологические ценности, с возможностью в будущем
-проводить мероприятия по грантам
public void ChangeConditionSpawnPoint(float positionZ)
{
for (int i = 0; i < _spawnPoints.Length; i++)
{
if (_spawnPoints[i].Position.position.z == positionZ)
{
_spawnPoints[i].IsEnable = !_spawnPoints[i].IsEnable;
break;
}
}
[SerializeField] private Weapon[] _weapons;
private Transform[] _transformsWeapon;
private void Start()
{
for(int i = 0; i < _weapons.Length; i++)
{
_transformsWeapon[i] = _weapons[i].transform;
}
private IEnumerator Jump()
{
_animator.SetBool("Grounded", false);
_coroutineAllowed = false;
_swipeTime = 0;
Vector3 startPosition = transform.position;
Vector3 endPosition = new Vector3(startPosition.x, transform.position.y + _jumpHeight, transform.position.z + _speed * _jumpDuration);
while (_swipeTime < _jumpDuration / 2)
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class RoadSpawner : MonoBehaviour
{
[SerializeField] private List<GameObject> _roads;
[SerializeField] private Player _player;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
[RequireComponent(typeof(CanvasGroup))]
public class GameOver : MonoBehaviour
{
[SerializeField] private Player _player;
[SerializeField] private Button _restartButton;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AudioSource))]
public class Signaling : MonoBehaviour
{
[SerializeField] private SpriteRenderer _sprite;