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
| %YAML 1.1 | |
| %TAG !u! tag:unity3d.com,2011: | |
| --- !u!13 &1 | |
| InputManager: | |
| m_ObjectHideFlags: 0 | |
| serializedVersion: 2 | |
| m_Axes: | |
| - serializedVersion: 3 | |
| m_Name: VR_PrimaryButton_Left | |
| descriptiveName: |
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 System.Collections.Generic; | |
| using UnityEngine; | |
| public static class UtilityExtensions | |
| { | |
| /// <summary> | |
| /// Gets the components only in immediate children of parent. | |
| /// </summary> | |
| /// <returns>The components only in children.</returns> | |
| /// <param name="script">MonoBehaviour Script, e.g. "this".</param> |
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 System.Collections; | |
| using System.Collections.Generic; | |
| // TODO: currently abit wrong. | |
| // Update to configure points-path-segment issue. | |
| // Enforce some rules? | |
| [RequireComponent(typeof(LineRenderer))] |
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
| % setup revision commands | |
| \usepackage{xargs} % Use more than one optional parameter in a new commands | |
| %\usepackage[dvipsnames]{xcolor} % Coloured text etc. now in acmart.cls | |
| \usepackage[colorinlistoftodos,prependcaption,textsize=small]{todonotes} | |
| \newcommandx{\unsure}[2][1=]{\todo[linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}} | |
| \newcommandx{\change}[2][1=]{\todo[linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}} | |
| \newcommandx{\feedback}[2][1=]{\todo[linecolor=yellow,backgroundcolor=yellow!25,bordercolor=yellow,#1]{#2}} | |
| \newcommandx{\improvement}[2][1=]{\todo[linecolor=Plum,backgroundcolor=Plum!25,bordercolor=Plum,#1]{#2}} | |
| \newcommandx{\thiswillnotshow}[2][1=]{\todo[disable,#1]{#2}} |
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 UnityEngine.EventSystems; | |
| public class CustomInputModule : StandaloneInputModule | |
| { | |
| // Current cursor lock state (memory cache) | |
| private CursorLockMode _currentLockState = CursorLockMode.None; | |
| /// <summary> | |
| /// Process the current tick for the module. |
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
| list.of.packages <- c("ggplot2", "Rcpp") | |
| new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])] | |
| if(length(new.packages)) install.packages(new.packages) |
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
| # Sound alert for big jobs | |
| from IPython.display import Audio, display | |
| def allDone(): | |
| display(Audio(url='https://sound.peal.io/ps/audios/000/000/537/original/woo_vu_luvub_dub_dub.wav', autoplay=True)) | |
| ## Insert whatever audio file you want above | |
| # Deep Copy function | |
| def very_deep_copy(self): | |
| return pd.DataFrame(self.values.copy(), self.index.copy(), self.columns.copy()) |
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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class GyroInput : MonoBehaviour { | |
| Gyroscope m_Gyro; | |
| public float speed = 0.1f; | |
| float hRotation = 0.0f; //Horizontal angle |
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 System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Text; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class ReadFromFile : MonoBehaviour | |
| { |
NewerOlder