Skip to content

Instantly share code, notes, and snippets.

View wwhitehead's full-sized avatar

Weslyn Whitehead wwhitehead

View GitHub Profile
#!/bin/bash
<< ////
The script creates 'licenses' under '$ANDROID_HOME' and creates a file which proves
that the SDK license was accepted by the user.
Please copy this to your own account/gist/server. Every time there's an updated license, update the file with the new
license hash.
Legally if you run this script (or your own version of it), it means YOU accepted the license - don't trust someone else.
The hashes below are supposed to be taken from $ANDROID_HOME/licenses/android-sdk-license on YOUR machine, after you
@wwhitehead
wwhitehead / gist:a7cb79bbb1cca519d43ec8192f58d8d0
Created May 9, 2017 19:03 — forked from trevordevore/gist:5584753
Convert XML to and from a LiveCode array
/**
* Handlers for converting XML to LiveCode arrays and vice versa.
*
* Provided by Trevor DeVore of Blue Mango Learning Systems.
*/
/**
* \brief Escapes the predefined XML entities in a string.
*
* \param pStr The string to escape the characters in.
@wwhitehead
wwhitehead / UIPanel.diff
Last active August 28, 2015 19:42 — forked from dogles/UIPanel.diff
UIPanel.cs change
--- UIPanel-old.cs 2014-12-17 09:36:13.000000000 -0500
+++ UIPanel-new.cs 2014-12-12 13:10:36.000000000 -0500
@@ -1157,19 +1157,19 @@
{
p.startingRenderQueue = rq;
p.UpdateDrawCalls();
- rq += p.drawCalls.size;
+ rq += p.drawCalls.size*2;
}
else if (p.renderQueue == RenderQueue.StartAt)
@wwhitehead
wwhitehead / UISortBehavior.cs
Last active August 28, 2015 19:42 — forked from dogles/UISortBehavior.cs
MonoBehaviour for sorting Renderers against NGUI widgets.
using UnityEngine;
public class UISortBehavior : MonoBehaviour
{
public UIWidget widgetInFrontOfMe;
[System.NonSerialized]
Renderer m_renderer;
void Awake() {