This file contains 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 System.Globalization; | |
using System.Threading; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
#if UNITY_EDITOR | |
[InitializeOnLoad] | |
public static class FixCultureEditor |
This file contains 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 System.Collections; | |
using UnityEditor; | |
using System.IO; | |
using System; | |
public class TextureAssetConfigurer : AssetPostprocessor { | |
[Serializable] |
This file contains 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
package me.gladwell.eclipse.m2e.android.configuration; | |
import java.util.List; | |
import org.apache.maven.model.Plugin; | |
import org.codehaus.plexus.util.xml.Xpp3Dom; | |
import org.eclipse.core.resources.IFolder; | |
import org.eclipse.core.resources.IProject; | |
import org.eclipse.core.resources.IResource; | |
import org.eclipse.core.resources.IWorkspace; |
This file contains 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
IProject project = request.getProject(); | |
IFolder link = project.getFolder("assets"); | |
IPath location = new Path(assetsDir); | |
if (workspace.validateLinkLocation(link, location).isOK()) { | |
try { | |
link.createLink(location, IResource.NONE, null); | |
} catch (CoreException e) { | |
throw new RuntimeException(e); | |
} |
This file contains 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
public class googleanalyticsdomainhash { | |
public static void main(String[] args) { | |
comparehash(null, 1); | |
comparehash("blog.gemserk.com", 244902742); | |
comparehash("www.tv.com", 141309943); | |
comparehash("www.teamliquid.net", 30386106); | |
} | |
public static void comparehash(String domain, int hash) { |