This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| /// Taken from: https://gist.github.com/SiarheiPilat/05463e64d4662860c6a799bb23d9aec8 | |
| /// Forked from: https://gist.github.com/unity3dcollege/c1efea3f87d3775bee3e010e9c6d7648 | |
| /// Author: Siarhei Pilat (Suasor AB) | |
| /// License: MIT | |
| public class ReplaceWithPrefab : EditorWindow | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import base64 | |
| from tqdm import tqdm | |
| master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1' | |
| base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1] | |
| resp = requests.get(master_json_url) | |
| content = resp.json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Annoyed by mDNSResponder flood like this after OS X Yosemite 10.10.4 upgrade? | |
| Jul 7 12:44:11 aet.local mDNSResponder[92] <Error>: Unknown DNS packet type 636F from 10.1.0.78 :63062 to 224.0.0.251 :5353 length 24 on 0000000000000004 (ignored) | |
| Jul 7 12:44:12 aet.local mDNSResponder[92] <Error>: Unknown DNS packet type 636F from 10.1.1.122 :50585 to 224.0.0.251 :5353 length 24 on 0000000000000004 (ignored) | |
| Add the following lines at the beginning of /etc/asl.conf | |
| ? [= Sender mDNSResponder] file mDNSResponder.log file_max=128k all_max=128k | |
| ? [= Sender mDNSResponder] ignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'json' | |
| require 'chunky_png' | |
| PLUTIL = '/usr/bin/plutil' | |
| TEXTUREPACKER = '/usr/local/bin/TexturePacker' | |
| dir = File.join(ARGV[0], '*plist') | |
| out_dir = File.join(Dir.pwd , ARGV[1]) | |
| tmp_dir = "/tmp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! | |
| * Copyright (c) 2012 Eric Feminella, http://code.ericfeminella.com/license/LICENSE.txt | |
| */ | |
| ( function( _, Backbone ) | |
| { | |
| // convenience reference to the Backbone.Collection constructor | |
| var _initialize = Backbone.Collection.prototype.initialize; | |
| /* | |
| * The Backbone.PersistableCollection provides a simply abstraction which |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright (c) 2013 Calvin Rien | |
| * | |
| * Based on the JSON parser by Patrick van Bergen | |
| * http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html | |
| * | |
| * Simplified it so that it doesn't throw exceptions | |
| * and can be used in Unity iPhone with maximum code stripping. | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - Copy the delivered ipa into a directory to work in. | |
| - export PlistBuddy="/usr/libexec/PlistBuddy" to get the PlistBuddy tool to your shell. If it is not added, all references to PlistBuddy | |
| will need to be written as the full path. | |
| - Take the delivered App.ipa and unzip it using the unzip command. This should produce a Payload directory containing the app and its | |
| resources. | |
| - Enter the command "codesign -d --entitlements :enterprise.plist Payload/PathToApp.app/" This pulls the entitlements out of the app, and | |
| prints them to a plist, without a leading "blob" of data. Pay particular attention to the colon before the enterprise.plist file name. |