Skip to content

Instantly share code, notes, and snippets.

🌍
https://ninevastudios.com/

Taras Leskiv TarasOsiris

🌍
https://ninevastudios.com/
Block or report user

Report or block TarasOsiris

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TarasOsiris
TarasOsiris / GetSocialPostprocessIOS.cs
Created Nov 28, 2016
VNG support for adding deeplinking to iOS 8
View GetSocialPostprocessIOS.cs
/**
* 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 / DumpEditorTextures.cs
Last active Nov 3, 2016
Dump all Unity3d Editor GUI skin textures as images
View DumpEditorTextures.cs
using UnityEngine;
using System.IO;
using UnityEditor;
public static class DumpEditorTextures
{
const string AssetsFolder = "Assets";
const string TexturesDestFolderNamePro = "TexturesPro";
const string TexturesDestFolderNameNormal = "TexturesNormal";
static readonly string TexturesDestPathPro = Path.Combine(AssetsFolder, TexturesDestFolderNamePro);
View git-deletebranches.sh
#!/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 / donate.md
Last active Jul 8, 2016 — forked from skratchdot/donate.md
My Paypal donate button in markdown format
View donate.md

Donation Button

Donate

View AndroidNativePicker.cs
#if UNITY_ANDROID
using UnityEngine;
using System;
public static class AndroidNativePicker
{
public delegate void OnDatePicked(int year,int month,int day);
public delegate void OnTimePicked(int hourOfDay, int minute);
public static void ShowDatePicker(OnDatePicked callback)
@TarasOsiris
TarasOsiris / SteeringSeek.cs
Created Jun 4, 2016
Understanding Steering Behaviors: Seek
View SteeringSeek.cs
using UnityEngine;
public class Seek : MonoBehaviour
{
private Transform pointer;
public float speed = 1.0f;
public float mass = 1.0f;
private Vector2 curVelocity;
@TarasOsiris
TarasOsiris / CheckForUpdates.cs
Last active May 25, 2016
Check for upates on GitHub form Unity Editor
View CheckForUpdates.cs
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()
View ShowToastUnityAndroid.cs
public static void ShowToast(string text)
{
if (Application.platform == RuntimePlatform.Android)
{
AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
AndroidJavaObject activity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
activity.Call("runOnUiThread", new AndroidJavaRunnable(
()=>
{
@TarasOsiris
TarasOsiris / Driver.cs
Last active Apr 15, 2016
Class for frame-by-frame Animation in Editor. Taken from Fabric Unity SDK
View Driver.cs
namespace Fabric.Internal.Editor.View.Animation
{
using UnityEngine;
using UnityEditor;
using System.Collections;
using System;
public class Driver
{
private uint invocationCount = 0;
@TarasOsiris
TarasOsiris / BetterDefines.cs
Last active May 4, 2016 — forked from PhannGor/BetterDefines.cs
Better Defines for Unity3D
View BetterDefines.cs
using System;
using System.Collections.Generic;
using System.Linq;
using BetterDefines.Editor.Entity;
using UnityEditor;
namespace BetterDefines.Editor
{
public static class BetterDefinesUtils
{
You can’t perform that action at this time.