View EmojiHelper.cs
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
// ---------------------------------------------------------------------------- | |
// The MIT License | |
// EmojiHelper https://gist.github.com/mopsicus/3903a1f111a738375a363b9e3f058385 | |
// Copyright (c) 2022 Mopsicus <mail@mopsicus.ru> | |
// ---------------------------------------------------------------------------- | |
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.IO; |
View PreBuildManifestUpdate.cs
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.IO; | |
using System.Text; | |
using System.Xml; | |
using UnityEditor.Android; | |
public class PreBuildManifestUpdate : IPostGenerateGradleAndroidProject { | |
/// <summary> | |
/// Method runs after gradle generated, before build | |
/// </summary> |
View TextGradient.cs
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
// ---------------------------------------------------------------------------- | |
// The MIT License | |
// TextGradient https://gist.github.com/mopsicus/9d344451ca614d7e9937bc0c6da2b21d | |
// Copyright (c) 2020 Mopsicus <mail@mopsicus.ru> | |
// ---------------------------------------------------------------------------- | |
using System.Collections; | |
using System.Collections.Generic; | |
using TMPro; | |
using UnityEngine; |
View installtools.sh
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
#!/bin/bash | |
clear | |
START=$(date +"%s") | |
function ShowElapsedTime { | |
echo '' | |
end=$(date +"%s") | |
elapsed=$(($end-$START)) |
View DefaultStencil.shader
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
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
Shader "Sprites/DefaultStencil" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 |
View SnapPosition.cs
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 UnityEngine; | |
/// <summary> | |
/// Fix position for objects in non canvas | |
/// </summary> | |
[ExecuteInEditMode] | |
public class SnapPosition : MonoBehaviour { | |
/// <summary> | |
/// Anchor settings |
View turbo_aegea.php
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
<? | |
$db_user = ''; // db user name | |
$db_password = ''; // db pass | |
$db_database = ''; // db name | |
$db_host = 'localhost'; // db url | |
$db = new mysqli($db_host, $db_user, $db_password, $db_database); | |
$result = $db->query("SELECT * FROM `notes` WHERE IsPublished = 1 AND isvisible = 1 ORDER BY `Stamp` DESC LIMIT 1"); |