Skip to content

Instantly share code, notes, and snippets.

View vegaro's full-sized avatar
😻

Cesar de la Vega vegaro

😻
View GitHub Profile
using System;
using UnityEngine;
using UnityEngine.Purchasing;
public class MyStoreClass : MonoBehaviour, IStoreListener
{
// Loading the sku of the parent subscription so we can get the receipt later. Unity IAP won't return receipts
// for the "subcription term" skus. The receipt is always null for subscription terms.
// https://answers.unity.com/questions/1367978/unity-iap-amazon-subscriptions.html
@vegaro
vegaro / main.dart
Created September 19, 2019 16:08
Using PurchaserInfoUpdateListener
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:purchases_flutter/purchases_flutter.dart';
void main() {
runApp(MaterialApp(
title: 'RevenueCat Sample',
home: InitialScreen(),
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 17,
// font family with optional fallbacks
@vegaro
vegaro / terrain.py
Last active December 20, 2015 02:29 — forked from scastillo/terrain.py
Lettuce's Terrain.py for Django + Google App Engine
import logging
import os
# Add appengine stuff to path
import dev_appserver as script
script.fix_sys_path()
from google.appengine.api import yaml_errors
from google.appengine.tools import dev_appserver
from google.appengine.tools import dev_appserver_main as main
@vegaro
vegaro / gist:9470733
Last active August 29, 2015 13:57
.bashrc mysysgit
# Note: ~/.ssh/environment should not be used, as it
# already has a different purpose in SSH.
env=~/.ssh/agent.env
# Note: Don't bother checking SSH_AGENT_PID. It's not used
# by SSH itself, and it might even be incorrect
# (for example, when using agent-forwarding over SSH).
agent_is_running() {