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
| <wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
| <s:Boolean x:Key="/Default/Housekeeping/SuppressOwnerlessFloatingWindows/IsDisablingIndependentFloating/@EntryValue">False</s:Boolean> | |
| </wpf:ResourceDictionary> |
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; | |
| public class PathPoint : MonoBehaviour { | |
| int radius = 10; | |
| public Func<Collider,GameObject, int> TriggerEnterAction; | |
| public Func<Collider, int> TriggerExitAction; | |
| public GameObject ObjectToDetect; | |
| void OnDrawGizmos(){ |
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
| void Start() | |
| { | |
| // for each node | |
| foreach (var node in Nodes) | |
| { | |
| // get point class and assign your custom trigger function to it | |
| var point = node.GetComponent<PathPoint>(); | |
| point.TriggerEnterAction = OnPathPointEnter; | |
| // let it know to only call trigger if this is the object collided | |
| point.ObjectToDetect = gameObject; |
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
| int OnPathPointEnter(Collider other,GameObject pathPoint) | |
| { | |
| //_nodeLastVisited++; | |
| _nodeLastVisited = Nodes.IndexOf(pathPoint.transform)+1; | |
| return 0; | |
| } |
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
| public static class MyMiniProfiler | |
| { | |
| public static MiniProfilerStep XStep(this MiniProfiler profiler, string operationName) | |
| { | |
| return new MiniProfilerStep(profiler, operationName); | |
| } | |
| } |
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
| TglGroup = GameObject.Find("Toggle Group Name").GetComponent<BetterToggleGroup>(); | |
| TglGroup.OnChange += TglGroup_OnChange; | |
| //... | |
| void TglGroup_OnChange(Toggle newActive) | |
| { | |
| Debug.Log(string.Format("Toggle {0} selected",newActive.name)); | |
| } |
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
| beginning parse | |
| statementList() | |
| statement() | |
| variableDeclaration() | |
| matching treat | |
| matching id | |
| matching eq | |
| matching expression | |
| expr() | |
| matching primary |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <packages> | |
| <package id="vim" /> | |
| <package id="atom" /> | |
| <package id="vlc" /> | |
| <package id="python2" /> | |
| <package id="google-chrome-x64" /> | |
| <package id="firefox" /> | |
| <package id="clover" /> | |
| <package id="adobereader" /> |
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
| CapsLock:: | |
| { | |
| if state = D | |
| { | |
| } | |
| else | |
| { | |
| Send, {Down down} | |
| Send, {Down up} | |
| } |
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
| // each h2 is a section | |
| var $h2s = $("h2"); | |
| console.log($h2s.length) | |
| var alphabet = ['A','B','C','D','E','F','G','H','I','J','K']; | |
| function Quiz() { | |
| var self = this; | |
| self.concepts = []; | |
| self.print = function() { | |
| var txtPrint = ""; | |
| // for each concept |
OlderNewer