Skip to content

Instantly share code, notes, and snippets.

View TarasOsiris's full-sized avatar
🌍
https://ninevastudios.com/

Taras Leskiv TarasOsiris

🌍
https://ninevastudios.com/
View GitHub Profile
@TarasOsiris
TarasOsiris / GetSocialDeepLinkingActivity.java
Created March 4, 2016 14:59 — forked from getsocial-im/GetSocialDeepLinkingActivity.java
Code for Android Unity App and the Intent Trouble Article on GetSocial Blog
package im.getsocial.sdk.core.unity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import im.getsocial.sdk.core.GetSocial;
import im.getsocial.sdk.core.util.Log;
@TarasOsiris
TarasOsiris / Driver.cs
Last active April 15, 2016 09:52
Class for frame-by-frame Animation in Editor. Taken from Fabric Unity SDK
namespace Fabric.Internal.Editor.View.Animation
{
using UnityEngine;
using UnityEditor;
using System.Collections;
using System;
public class Driver
{
private uint invocationCount = 0;
@TarasOsiris
TarasOsiris / GetSocialDeepLinkingActivity.java
Last active April 26, 2016 03:04
This activity is created because we cannot get Activity.onNewIntent callback in Unity when the app is running in background.
package im.getsocial.sdk.core.unity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import im.getsocial.sdk.core.GetSocial;
import im.getsocial.sdk.core.util.Log;
@TarasOsiris
TarasOsiris / CheckForUpdates.cs
Last active May 25, 2016 15:28
Check for upates on GitHub form Unity Editor
private const string LatestReleaseApiURL = "https://api.github.com/repos/getsocial-im/getsocial-unity-sdk/releases/latest";
private const string LatestReleaseURL = "https://github.com/getsocial-im/getsocial-unity-sdk/releases/latest";
[MenuItem(GetSocialMenuParent + "GetSocial/Check for Updates...", false, priority: 2000)]
public static void CheckForUpdates()
{
CheckForUpdatesOnReleaseRepo();
}
private static void CheckForUpdatesOnReleaseRepo()
@TarasOsiris
TarasOsiris / donate.md
Last active July 8, 2016 09:08 — forked from skratchdot/donate.md
My Paypal donate button in markdown format

Donation Button

Donate

@TarasOsiris
TarasOsiris / git-deletebranches.sh
Created August 18, 2016 12:09 — forked from zasadnyy/git-deletebranches.sh
Git Delete Merged Branches
#!/bin/bash
MAIN=develop
BRANCHES=$(git branch --merged $MAIN | grep -v -e 'master\|staging\|develop\|\*')
echo Branches merged into $MAIN:
echo $BRANCHES | tr " " "\n"
read -p "Delete these branches (y/n)? " answer
@TarasOsiris
TarasOsiris / GetSocialPostprocessIOS.cs
Created November 28, 2016 12:14
VNG support for adding deeplinking to iOS 8
/**
* Copyright 2015-2016 GetSocial B.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@TarasOsiris
TarasOsiris / MonoSingleton.cs
Last active November 20, 2018 15:03
Singleton MonoBehavior for Unity3d
using JetBrains.Annotations;
using UnityEngine;
[PublicAPI]
public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T>
{
static T _instance;
public static T Instance
{
@TarasOsiris
TarasOsiris / SteeringSeek.cs
Created June 4, 2016 18:49
Understanding Steering Behaviors: Seek
using UnityEngine;
public class Seek : MonoBehaviour
{
private Transform pointer;
public float speed = 1.0f;
public float mass = 1.0f;
private Vector2 curVelocity;
@TarasOsiris
TarasOsiris / Release checklist
Created August 13, 2020 11:24
Unity Asset Store Release checklist
In Unity Project:
* Check if there are no compile errors or warnings on other platforms (Desktop e.g.)
* Make sure you rebuild the latest library into Unity project (.aar on Android)
* Test all implemented features on all Android versions (oldest and newest), different devices and emulators, on iOS test on all devices
* Test if old features didn't break
* Check if no side plugins are in the project that could be submitted (e.g. Plugins/Editor/Rider)
* Check if no hardcoded API keys are remaining (Google Maps, Place Picker)
* Update documentation
* Check if README.txt release notes in project are up-to-date