Skip to content

Instantly share code, notes, and snippets.

View acoppes's full-sized avatar

Ariel Coppes acoppes

View GitHub Profile
@acoppes
acoppes / disableGooglePlayDevices.js
Created September 23, 2013 20:50
A script to disable Google Play devices from developer console given a list of devices.
// ==UserScript==
// @name My Fancy New Userscript
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match https://play.google.com/apps/publish/*
// @require http://code.jquery.com/jquery-latest.js
// @copyright 2012+, You
// ==/UserScript==
@acoppes
acoppes / bugfix.patch
Created October 21, 2016 01:01
patch to fix bug on Progress for trello plugin
diff --git a/js/bp-trello.js b/js/bp-trello.js
index 56612ad..c8d12ec 100644
--- a/js/bp-trello.js
+++ b/js/bp-trello.js
@@ -347,8 +347,16 @@ UPDATED
//reset
bp.math.progressMax = 0;
bp.math.progressComplete = 0;
- _lists = ModelCacheCache._caches['board_'+getBoard().id]._cache.List;
- _cards = ModelCacheCache._caches['board_'+getBoard().id]._cache.Card;
@acoppes
acoppes / gist:2eb9e769c192206984c7fec8ee0676b0
Created January 21, 2017 23:32
bomberdota input config
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!13 &1
InputManager:
m_ObjectHideFlags: 0
m_Axes:
- serializedVersion: 3
m_Name: Horizontal
descriptiveName:
descriptiveNegativeName:
@acoppes
acoppes / CreateCustomEditorAction.cs
Created October 21, 2018 20:03
Unity menu action to create an empty Editor for the selected MonoScript
using UnityEditor;
using System.Text;
using System.IO;
public static class CreateCustomEditorAction
{
[MenuItem("Assets/Create/Custom Editor from Script", true)]
public static bool CreateCustomInspectorValidator()
{
return Selection.activeObject is MonoScript;
@acoppes
acoppes / readme.txt
Created December 11, 2018 17:45
Dicey Dices (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@acoppes
acoppes / UnityEditorTests.cs
Created April 10, 2019 11:09
Playing with unity editor
using UnityEditor;
using UnityEngine;
[ExecuteInEditMode]
public class TestEditor : MonoBehaviour
{
public UnityEngine.Object prefab;
public GameObject parent;
using NaiveNetworkGame.Server.Components;
using Unity.Collections;
using Unity.Entities;
using Unity.Mathematics;
using Unity.Transforms;
namespace NaiveNetworkGame.Server.Systems
{
[UpdateAfter(typeof(MovementActionSystem))]
[UpdateInGroup(typeof(ServerSimulationSystemGroup))]
@acoppes
acoppes / AssetDatabaseExt.cs
Last active July 10, 2023 12:45
Unity Editor helper methods to get Prefabs with one or more specific components from the assets database.
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace Utils.Editor
{
public static class AssetDatabaseExt
{
@acoppes
acoppes / OptionalFieldsPropertyDrawer.cs
Created April 9, 2021 01:37
Just a Untiy prop drawer for optonal fields
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
namespace Gemserk.Utils
{
[CustomPropertyDrawer(typeof(OptionalFieldsAttribute))]
public class OptionalFieldsPropertyDrawer : PropertyDrawer
{
@acoppes
acoppes / RefactorTools.cs
Last active April 30, 2022 09:33
Unity Editor helper methods to Refactor Data stored in Prefabs, Scenes and other Assets
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
namespace Utils.Editor
{
public static class RefactorTools