Skip to content

Instantly share code, notes, and snippets.

@v01pe
v01pe / BuildHandler.cs
Created August 4, 2021 10:30
Build pre- and post-processing. Workaround for missing build canceled delegate.
using System;
using UnityEditor;
using UnityEditor.Build;
using UnityEngine;
using Object = UnityEngine.Object;
[InitializeOnLoad]
public class BuildHandler : MonoBehaviour
{
/// <summary>
@cwardzala
cwardzala / iubenda-react.js
Created February 28, 2020 18:21
React component to embed Iubenda privacy policy.
const Iubenda = ({
policyId
}) => {
useEffect(() => {
var s = document.createElement("script");
let tag = document.getElementsByTagName("script")[0];
s.src="https://cdn.iubenda.com/iubenda.js";
tag.parentNode.insertBefore(s,tag);
@jessfraz
jessfraz / boxstarter.ps1
Last active April 11, 2024 16:02
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@wcoastsands
wcoastsands / BuildManifestObject.cs
Last active December 3, 2022 00:42
BuildManifestObject stub for use with pre-export methods in Unity Cloud Build
#if !UNITY_CLOUD_BUILD
using System.Collections.Generic;
namespace UnityEngine.CloudBuild
{
/// <summary>
/// A stub of the <see cref="T:UnityEngine.CloudBuild.BuildManifestObject"/> class,
/// available only on Unity Cloud Build servers.
/// <para>Pre export methods must take a single parameter of this type in order for the
/// method to be called prior to building a project in Unity Cloud Build.
@mlynch
mlynch / cordova-plugin-guide.md
Last active February 3, 2023 00:21
Cordova Plugin Developer Guide

Cordova Plugin Development Guide (iOS and Android)

Version: 0.0.1 updated 7/1/2016

Cordova Plugins are the magic that enable our mobile web app content to access the full power of Native SDKs underneath, but through clean JavaScript APIs that work the same across all platforms we target.

Building Cordova plugins is scary for many Cordova and Ionic developers, but it doesn't have to be. This simple guide walks through the what, when, why, and how of Cordova plugin development for iOS and Android.

Introduction

@nonathaj
nonathaj / UnitySingleton.cs
Last active May 28, 2020 19:55
Generic UnitySingleton class for creating different types of singletons in Unity
using UnityEngine;
using System;
using System.Collections;
/// <summary>
/// Class for holding singleton component instances in Unity.
/// </summary>
/// <example>
/// [UnitySingleton(UnitySingletonAttribute.Type.LoadedFromResources, false, "test")]
/// public class MyClass : UnitySingleton&lt;MyClass&gt; { }