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
const sales = 2871; | |
//result of https://api.dtf.ru/v2.31/comments?contentId=2922979&sorting=da | |
const comments = require('./input.json'); | |
console.log(comments.result.items.length); | |
let result = comments.result.items | |
.filter(function (item) { | |
return item.level === 0; |
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
Ai - Carving.ApplyResults - TimeNanoseconds | |
Ai - Carving.BuildBVTree - TimeNanoseconds | |
Ai - Carving.Clipping - TimeNanoseconds | |
Ai - Carving.ConvexHulls - TimeNanoseconds | |
Ai - Carving.Prepare - TimeNanoseconds | |
Ai - Carving.ProjectVertices - TimeNanoseconds | |
Ai - CollectSources - TimeNanoseconds | |
Ai - Colliders - TimeNanoseconds | |
Ai - Components.NavMeshAgent.SendMessage - TimeNanoseconds | |
Ai - Components.NavMeshAgent.State - TimeNanoseconds |
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
using System; | |
using System.Collections.Generic; | |
using ExitGames.Client.Photon; | |
using Photon.Pun; | |
using Photon.Realtime; | |
using UnityEngine; | |
using Hashtable = ExitGames.Client.Photon.Hashtable; | |
public class z_DebugPunCallbacks : MonoBehaviourPunCallbacks | |
{ |
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
//Download image from vk | |
var $ = $; | |
function convertImageToBase64(imgUrl, callback) { | |
const image = new Image(); | |
image.crossOrigin='anonymous'; | |
image.onload = () => { | |
const canvas = document.createElement('canvas'); |
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
[MenuItem(z_EditorPrefs.ContextMenuInHierarchyCommonPath + "/Fix Before export FBX", false)] | |
public static void FixBeforeExportFbx() | |
{ | |
if (!Selection.activeGameObject) | |
{ | |
return; | |
} | |
foreach (var gameObject in Selection.gameObjects) |
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
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
//https://forum.unity.com/threads/solved-scenemanager-loadscene-make-the-scene-darker-a-bug.542440/#post-7752681 | |
public class z_DarkSkyboxFix : MonoBehaviour | |
{ | |
IEnumerator Start() | |
{ | |
if (RenderSettings.customReflectionTexture != null) |
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
Mary | |
Patricia | |
Jennifer | |
Linda | |
Elizabeth | |
Barbara | |
Susan | |
Jessica | |
Sarah | |
Karen |
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
James | |
Robert | |
John | |
Michael | |
William | |
David | |
Richard | |
Joseph | |
Thomas | |
Charles |
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
using System; | |
using Newtonsoft.Json; | |
using UnityEngine; | |
public class z_Texture2DJsonConverter : JsonConverter<Texture2D> | |
{ | |
public override void WriteJson(JsonWriter writer, Texture2D? value, JsonSerializer serializer) | |
{ | |
writer.WriteValue(value.EncodeToPNG()); | |
} |
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
jsonSerializerSettings = JsonConvert.DefaultSettings.Invoke(); | |
jsonSerializerSettings.TypeNameHandling = TypeNameHandling.Auto; | |
jsonSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore; | |
jsonSerializerSettings.Converters.Add(new z_Texture2DJsonConverter()); | |
if (Debug.isDebugBuild || Application.isEditor) | |
jsonSerializerSettings.Formatting = Formatting.Indented; | |
NewerOlder