Skip to content

Instantly share code, notes, and snippets.

View konchunas's full-sized avatar

Julian Konchunas konchunas

View GitHub Profile
@nmariz
nmariz / singleton.py
Created October 15, 2012 11:20
Python Singleton Metaclass
class Singleton(type):
instance = None
def __call__(cls, *args, **kwargs):
if cls.instance is None:
cls.instance = super(Singleton, cls).__call__(*args, **kwargs)
return cls.instance
if __name__ == '__main__':
@zenozeng
zenozeng / remove-title-bar.sh
Created February 9, 2014 11:28
remove title bar using xprop
xprop -id $xid -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS "0x2, 0x0, 0x0, 0x0, 0x0"
@NeoTheThird
NeoTheThird / godot.desktop
Created February 11, 2017 20:52
A .desktop file for the godot engine. Icon has to point to a logo file.
[Desktop Entry]
Name=Godot Engine
Comment=An open source game engine. Need i say more?
Exec=/bin/godot
Icon=.godot.jpeg
Terminal=false
Type=Application
StartupNotify=true
@KarlRamstedt
KarlRamstedt / FirstPersonCameraRotation.cs
Created January 8, 2020 10:17
A simple First Person Camera rotation script for Unity.
using UnityEngine;
/// <summary>
/// A simple FPP (First Person Perspective) camera rotation script.
/// Like those found in most FPS (First Person Shooter) games.
/// </summary>
public class FirstPersonCameraRotation : MonoBehaviour {
public float Sensitivity {
get { return sensitivity; }