Skip to content

Instantly share code, notes, and snippets.

View gindemit's full-sized avatar

Gindemit Konstantin gindemit

View GitHub Profile
internal static class UnicodeCharacters
{
struct CharacterInfo
{
public char character;
public char lower;
public int characterCode;
public int lowerCode;
public override string ToString()
public static class MathHelper
{
public struct MassPosition
{
public Vector3 position;
public float mass;
}
public static Vector3 CenterOfMass(List<MassPosition> massPositions)
{
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.Collections.Generic;
public class FindObjectsInTheSceneHelper : EditorWindow
{
string className = "Rigidbody";
[MenuItem(MenuItemName.SceneTools + "Find Objects In Current Scene", false, MenuItemSorter.SceneToolsFind)]
find . -name *.mp4 | sed -e 'p;s#\./\([0-9]*\)\.[a-zA-Z_]*/#0\1_#g' | xargs -n2 mv
@gindemit
gindemit / print_unity_bundles_version.sh
Created August 17, 2015 08:04
Find all Unity bundles in current directory and sorted print they version.
find . -name '*.unity3d' -exec head -c 26 '{}' ';' -exec echo " '{}'" ';' | cut -c 18- | sort
@gindemit
gindemit / test.cs
Created July 21, 2015 12:35
position as field
namespace My
{
class GameObject
{
public Transform transform;
}
class Transform
{
public Vector3 position;