Skip to content

Instantly share code, notes, and snippets.

@Trinkes
Trinkes / Grid.cs
Created May 24, 2021
Block Adventure - Bug fix where user can drop a shape different from the one he dragged
View Grid.cs
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;
@Trinkes
Trinkes / AppcoinsUtils.java
Created Dec 16, 2019
Wallet installed verification simplified version
View AppcoinsUtils.java
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();
}
View gist:8e0cfd96cad46ac70cb99bf369fd6ec1
### 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: