Skip to content

Instantly share code, notes, and snippets.

View ryz's full-sized avatar
😊

Steve Haßenpflug ryz

😊
View GitHub Profile
@ryz
ryz / kitty-monokai.reg
Last active March 5, 2023 00:42 — forked from gdvalle/putty-monokai.reg
Monokai style theme for KiTTY, an awesome PuTTY fork for Windows. (colors copied from ST2's theme.)
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"
@ryz
ryz / autoexec_dota2_ryz.cfg
Last active August 29, 2015 14:27
My Dota 2 autoexec
// 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
@ryz
ryz / autoexec.cfg
Last active August 29, 2015 14:27
Modified cfg
// 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
@ryz
ryz / gcdecoder.py
Last active September 8, 2015 20:28
GC Decoder
import re
import codecs
# decimal to ascii
replacements = {"45": "-", "46": "."}
# morse code lookup table
encoding = {
"A": ".-", "B": "-...", "C": "-.-.",
"D": "-..", "E": ".", "F": "..-.",
@ryz
ryz / PixelPerfectCam.cs
Created November 30, 2015 23:19 — forked from pixelrevision/PixelPerfectCam.cs
Script for unity to create a pixel locked orthogonal camera
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);
/**
@ryz
ryz / AutoSnap.cs
Last active January 19, 2016 08:24
Unity AutoSnap
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