Skip to content

Instantly share code, notes, and snippets.

View Tr0sT's full-sized avatar

Sergey Morozov Tr0sT

View GitHub Profile
public interface ITitanArena : IDisposable
{
ITitanArenaServerInteraction ServerInteraction { get; }
ITitanArenaOpponentsManager Opponents { get; }
ITitanArenaMiningManager Mining { get; }
ITitanArenaLeaguesManager Leagues { get; }
ITitanUnionOfTheWeekManager TitanUnionOfTheWeek { get; }
ITitanArenaBattlesHolder Battles { get; }
ITitanArenaShopManager Shop { get; }
}
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using UnityEditor;
using UnityEngine;
namespace Nuclear
{
#nullable enable
using System;
using GUI.Bender;
using NuclearBand;
using Stateless;
using UnityEngine;
using UnityEngine.EventSystems;
namespace Bender
{
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
[CanEditMultipleObjects]
[CustomEditor(typeof(Transform), false)]
public class CustomTransformInspector : Editor
{
private Editor _editorInstance;
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
[CanEditMultipleObjects]
[CustomEditor(typeof(RectTransform), false)]
public class CustomRectTransformInspector : Editor
{
private Editor _editorInstance;
using UnityEditor;
using UnityEngine;
using System.Collections;
[InitializeOnLoad]
public class FullscreenPlayMode : MonoBehaviour {
//The size of the toolbar above the game view, excluding the OS border.
private static int tabHeight = 22;
//@version=4
study("highest", overlay = true)
f_highest(_src, _length)=>
_adjusted_length = _length < 1 ? 1 : _length
_value = _src
for _i = 0 to (_adjusted_length-1)
_value := _src[_i] >= _value ? _src[_i] : _value
_return = _value
//@version = 3
study(title="Vervoort %b bands", shorttitle="Vervoort %b bands", overlay = true)
f_mul (x) => 2 / (x + 1)
f_ema (src, len, last) =>
incEma = f_mul(len) * last + (1 - f_mul(len)) * ema(src, len)[1]
[ema(src, len), incEma]
calc_tema(src, length, last) =>
//@version=2
study("Edited Noro's Bands Scalper Indicator v1.6", shorttitle = "Ind EditedNero1.6", overlay = true)
//Settings
takepercent = input(30, defval = 30, minval = 0, maxval = 10000, title = "take, 0.1%")
needbe = input(true, defval = true, title = "Bands Entry")
needct = input(true, defval = false, title = "Counter-trend entry")
bodylen = input(10, defval = 10, minval = 0, maxval = 50, title = "Body length")
trb = input(1, defval = 1, minval = 1, maxval = 5, title = "Trend bars")
len = input(20, defval = 20, minval = 2, maxval = 200, title = "Period")