Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am trinkes on github.
* I am trinkes (https://keybase.io/trinkes) on keybase.
* I have a public key ASAiaJxtFsH2xI-gBYoM4yRsh_0YuUGFKTXmWgHjA7BapAo
To claim this, I am signing this object:
@Trinkes
Trinkes / AppcoinsUtils.java
Created December 16, 2019 11:59
Wallet installed verification simplified version
import android.content.Context;
import android.content.Intent;
public class AppcoinsUtils {
public static boolean hasWalletInstalled(Context context) {
Intent intent = new Intent("com.appcoins.wallet.iab.action.BIND");
return !context.getPackageManager()
.queryIntentServices(intent, 0)
.isEmpty();
}
@Trinkes
Trinkes / Grid.cs
Created May 24, 2021 00:12
Block Adventure - Bug fix where user can drop a shape different from the one he dragged
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Grid : MonoBehaviour
{
[SerializeField] private ShapeStorage shapeStorage;
[SerializeField] public int rows = 0;
[SerializeField] private int columns = 0;