This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
// Restrict raycasting to a sprite mesh shape | |
// Could use Image.alphaHitTestMinimumThreshold to mask but that requires read/write images which can't be packed | |
[RequireComponent(typeof(Image))] | |
public class SpriteMeshRaycastFilter : MonoBehaviour, ICanvasRaycastFilter { | |
private RectTransform rectTransform; |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
public static class CustomInspectorCreator | |
{ | |
[MenuItem("Assets/Create/Custom Inspector", priority = 81)] | |
static void CreateInsptorEditorClass() | |
{ | |
foreach (var script in Selection.objects) |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Folder\shell\Unity5] | |
@="" | |
"Icon"="%ProgramFiles%\\Unity\\Editor\\Unity.exe" | |
"MUIVerb"="Open as Unity Project" | |
[HKEY_CLASSES_ROOT\Folder\shell\Unity5\Command] | |
@="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\"" |
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
/// <summary> | |
/// Given a 180mb NuGet package, NuGet.Core's PackageManager uses 1.17GB of memory and 55 seconds to extract it. | |
/// This is because it continually takes package files and copies them to byte arrays in memory to work with. | |
/// This class simply uses the packaging API's directly to extract, and only uses 6mb and takes 10 seconds on the | |
/// same 180mb file. | |
/// </summary> | |
public class LightweightPackageInstaller | |
{ | |
private static readonly string[] ExcludePaths = new[] { "_rels", "package\\services\\metadata" }; |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
*.pbxproj -crlf -diff -merge |