Skip to content

Instantly share code, notes, and snippets.

View vad710's full-sized avatar
🎯
Focusing

Vinny vad710

🎯
Focusing
View GitHub Profile
@dlidstrom
dlidstrom / run-jasmine.js
Last active January 3, 2016 07:49
Runs Jasmine tests using PhantomJS. Adapted for use within TeamCity.
var system = require('system'),
env = system.env;
/**
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.
*
* @param testFx javascript condition that evaluates to a boolean,
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or
* as a callback function.
@AngryAnt
AngryAnt / TerriblyHackyLog.cs
Created August 7, 2013 18:04
Abusing reflection and the internal Unity player build error function to get stacktrace-less error logs. Not recommended for anything sane.
using UnityEngine;
using System.Reflection;
public class TerriblyHackyLog : MonoBehaviour
{
void Start ()
{
Log ("Aaaaarrrrgh!");
}
@AngryAnt
AngryAnt / ComponentLister.cs
Created September 29, 2012 17:52
Example code for "Where did that component go?" blog post on AngryAnt.com
using UnityEngine;
using UnityEditor;
using System.Collections;
public class ComponentLister : EditorWindow
{
private Hashtable sets = new Hashtable();
private Vector2 scrollPosition;