Skip to content

Instantly share code, notes, and snippets.

@seaders
seaders / gist:78180fb8ca2bfec6f22d
Created February 25, 2015 18:04
Profiler is only supported in Unity Pro. Filename: Runtime/Profiler/ProfilerImpl.cpp
02-25 18:00:54.807 14920-14970/com.sixminute.freeracing E/Unity﹕ Profiler is only supported in Unity Pro.
(Filename: Runtime/Profiler/ProfilerImpl.cpp Line: 563)
02-25 18:00:54.823 14920-14970/com.sixminute.freeracing E/Unity﹕ Profiler is only supported in Unity Pro.
(Filename: Runtime/Profiler/ProfilerImpl.cpp Line: 563)
02-25 18:00:54.846 14920-14970/com.sixminute.freeracing E/Unity﹕ Profiler is only supported in Unity Pro.
(Filename: Runtime/Profiler/ProfilerImpl.cpp Line: 563)
02-25 18:00:54.862 14920-14970/com.sixminute.freeracing E/Unity﹕ Profiler is only supported in Unity Pro.
(Filename: Runtime/Profiler/ProfilerImpl.cpp Line: 563)
02-25 18:00:54.885 14920-14970/com.sixminute.freeracing E/Unity﹕ Profiler is only supported in Unity Pro.
(Filename: Runtime/Profiler/ProfilerImpl.cpp Line: 563)
using UnityEditor;
using System;
using Mono.Cecil;
[InitializeOnLoadAttribute]
static class SixMinutePostprocess
{
static SixMinutePostprocess()
{
Console.WriteLine("Init AssemblyPostProcessor");
using UnityEditor;
using System;
using System.Collections.Generic;
public class GameBuilder
{
static void Android()
{
List<EditorBuildSettingsScene> scenes = new List<EditorBuildSettingsScene>(EditorBuildSettings.scenes);
List<string> enabledScenes = new List<string>();
public class Program
{
static void Main(string[] args)
{
Pet rex;
rex = Something.MakeSomething<Pet>();
BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic;
01-26 12:21:55.815 966-966/com.sixminute.freeracing D/GPLogin﹕ onActivityResult with requestCode = 9001, responseCode=-1, intent=null
01-26 12:21:55.866 966-966/com.sixminute.freeracing I/Unity﹕ onResume
01-26 12:21:55.870 966-966/com.sixminute.freeracing I/Unity﹕ windowFocusChanged: true
01-26 12:21:55.916 966-1003/com.sixminute.freeracing D/Unity﹕ Sensor : Accelerometer ( 1) ; 0.000595 / 0.00s ; MPU6515 Accelerometer / InvenSense
01-26 12:21:56.101 966-966/com.sixminute.freeracing D/GPLogin﹕ onConnected() called. Sign in successful!
01-26 12:21:56.113 966-1229/com.sixminute.freeracing D/GPLogin﹕ Getting GP accessToken with com.prime31.UnityPlayerNativeActivity@187789a4, [email protected], audience:server:client_id:40xxxxx17-55xxxxxxxx4ji.apps.googleusercontent.com
01-26 12:21:56.167 966-966/com.sixminute.freeracing I/GPLogin﹕ Access token retrieved:xxxxxxxxx.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwic3ViIjoiMTA3OTkzMzI4MTQxNDc1ODE2MzM5IiwiYXpwIjoiNDAxODIxODQ1MDE3LWtmb
@seaders
seaders / resigner.py
Created June 30, 2014 13:22
Python ipa resigner script
import argparse
import sys
import os
import shutil
import re
import shlex
import subprocess
import plistlib
from functools import wraps
from . import app, db
def sendEmail(email_subject, email_from, email_to, email_reply_to, email_msg):
try:
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from boto.ses.connection import SESConnection
m = MIMEMultipart()
import sh
class CommandWrapper(sh.Command):
'''
Here's the 'secret sauce' class, where we can wrap whatever we want for
python usage.
'''
def __init__(self, baseObject):
@seaders
seaders / RedirectTest
Created July 27, 2013 00:39
Little bit of code to show how Flash doesn't handle a redirect, which is incredibly common for interacting with Facebook images.
package
{
import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
import flash.system.LoaderContext;
public class RedirectTest extends Sprite
@seaders
seaders / gist:5905342
Last active December 19, 2015 05:39
Simple bit to allow you to have a background skin which has a constantly centered starling Image in it.
/*
Copyright 2013 Seadna Long. All Rights Reserved.
This program is free software. You can redistribute and/or modify it in
any way.
*/
package com.bluemanimposter.custom.starling.display
{
import starling.display.DisplayObjectContainer;
import starling.display.Image;