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; | |
[ExecuteAlways] | |
public class TrackObjects : MonoBehaviour | |
{ | |
public Transform target1; | |
[Range(0f, 1f)] public float target1Weight; | |
public Transform target2; | |
[Range(0f, 1f)] public float target2Weight; |
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 UnityEditor; | |
using UnityEngine.Timeline; | |
using UnityEngine.Playables; | |
using System.Collections.Generic; | |
public class MyAssemblyWindow : EditorWindow | |
{ | |
[MenuItem("Window/Alan Tools/Assembly")] | |
public static void ShowWindow() |
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
<!doctype html> | |
<html amp lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<title>AMP Script Example</title> | |
<link rel="canonical" href="https://www.example.com/url/to/myself/if/amp-first"> | |
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> |
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
<?php | |
/** | |
* Return the path of the auth.json file. | |
*/ | |
function findAuthJson() { | |
// Windows sets HOMEDRIVE and HOMEPATH, but cygwin sets HOME. | |
if (!isset($_SERVER["HOME"]) && isset($_SERVER["HOMEDRIVE"])) { |
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
#!/usr/bin/php | |
<?php | |
/** | |
* Copyright © 2015 Magento. All rights reserved. | |
* See https://github.com/magento/magento2/blob/develop/COPYING.txt for license details. | |
*/ | |
/** | |
* validate_m2_package.php - a script that checks a given M2 zip package to ensure | |
* it is structured correctly and has all the required files. |
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
#!/usr/bin/php | |
<?php | |
/** | |
* Copyright © 2015 Magento. All rights reserved. | |
* See https://github.com/magento/magento2/blob/develop/COPYING.txt for license details. | |
*/ | |
/** | |
* validate_m2_package.php - a script that checks a given M2 zip package to ensure | |
* it is structured correctly and has all the required files. |
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
// Usage: | |
// grunt deploy - invokes magento dev:source-theme:deploy for all themes. | |
// grunt less - runs less over all themes. | |
// grunt watch - watches for file changes with livereload. | |
// =========================== Configuration =========================== | |
// The default Less processing pipeline. | |
function lessPipeline(srcLessFile, destDir) { |
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
// Usage: | |
// grunt deploy - invokes magento dev:source-theme:deploy for all themes. | |
// grunt less - runs less over all themes | |
// grunt watch - watches for file changes. | |
// *** INTENDED TO BE ADJUSTED *** | |
// All theme handled. | |
var themes = ['Magento/luma', 'Magento/blank']; |
NewerOlder