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; | |
public class AutoSnap : EditorWindow | |
{ | |
private Vector3 prevPosition; | |
private Vector3 prevScale; | |
private Vector3 prevRotation; | |
// These need to be static because the auto snap window is |
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; | |
/** | |
* A camera to help with Orthagonal mode when you need it to lock to pixels. Desiged to be used on android and retina devices. | |
*/ | |
public class PixelPerfectCam : MonoBehaviour { | |
/** | |
* The target size of the view port. | |
*/ | |
public Vector2 targetViewportSizeInPixels = new Vector2(480.0f, 320.0f); | |
/** |
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
import re | |
import codecs | |
# decimal to ascii | |
replacements = {"45": "-", "46": "."} | |
# morse code lookup table | |
encoding = { | |
"A": ".-", "B": "-...", "C": "-.-.", | |
"D": "-..", "E": ".", "F": "..-.", |
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
// Dota 2 autoexec.cfg by ryz | |
// goes into <steamdir>\steamapps\common\dota 2 beta\dota\cfg\ | |
// Basic autexec functions | |
con_enable "1" | |
developer "0" | |
contimes 5 | |
// Play confirmation sound that the autoexec is loaded | |
playuisound DOTA_Item.Hand_Of_Midas |
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
// Dota 2 autoexec.cfg by ryz | |
// goes into <steamdir>\steamapps\common\dota 2 beta\dota\cfg\ | |
// Basic autexec functions | |
con_enable "1" | |
developer "0" | |
contimes 5 | |
// Play confirmation sound that the autoexec is loaded | |
playuisound DOTA_Item.Hand_Of_Midas |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions\monokai] | |
"Colour21"="255,255,255" | |
"Colour20"="245,222,179" | |
"Colour19"="200,240,240" | |
"Colour18"="0,217,217" | |
"Colour17"="179,146,239" | |
"Colour16"="174,129,255" | |
"Colour15"="122,204,218" |