Skip to content

Instantly share code, notes, and snippets.

View link458's full-sized avatar

Johannes Mattmann link458

View GitHub Profile
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.AI;
@Srfigie
Srfigie / .gitattributes
Created February 2, 2020 14:30 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@bfraboni
bfraboni / blur_float.cpp
Last active December 17, 2024 07:30
C++ implementation of a fast Gaussian blur algorithm by Ivan Kutskir - Integer and Floating point version
// Copyright (C) 2017 Basile Fraboni
// Copyright (C) 2014 Ivan Kutskir
// All Rights Reserved
// You may use, distribute and modify this code under the
// terms of the MIT license. For further details please refer
// to : https://mit-license.org/
//
//!
//! \file blur.cpp
@cwmagnus
cwmagnus / VirtualJoystick.cs
Created October 4, 2018 18:22
A simple virtual joystick script to use with Unity for mobile games.
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
/// <summary>
/// Virtual joystick for mobile joystick control
/// </summary>
public class VirtualJoystick : MonoBehaviour, IDragHandler, IPointerUpHandler, IPointerDownHandler
{
private Image backPanel;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Rendering;
namespace Glitchers.UserInterface
{
public class CustomZTestUI : MonoBehaviour, IMaterialModifier
{
@yasirkula
yasirkula / EditorCollapseAll.cs
Last active March 3, 2026 16:21
An editor script for Unity 3D to collapse all GameObject's in Hierarchy view or to collapse all folders in Project view. See the comments section below for instructions.
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEditor.IMGUI.Controls;
using UnityEditorInternal;
using UnityEngine.SceneManagement;
#if UNITY_6000_3_OR_NEWER
using EntityId = UnityEngine.EntityId;
#else
using EntityId = System.Int32;
@irbull
irbull / OpenSSLExample.cpp
Created August 11, 2016 18:32
Code signing and verification with OpenSSL
#include <iostream>
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <assert.h>
@Calinou
Calinou / build_linux.sh
Last active July 8, 2023 23:24
Compile Godot for GNU/Linux 64-bit easily
#!/bin/sh -x
# This script compiles Godot for GNU/Linux in 64-bit.
# Place this script at the root of your Godot Git clone.
# CC0 1.0 Universal
# Build 64-bit Godot for GNU/Linux desktop, in debug and release mode
scons p=x11 -j$(nproc) verbose=no tools=yes target=release_debug openssl=builtin
scons p=x11 -j$(nproc) verbose=no tools=no target=release_debug openssl=builtin
@duksis
duksis / pixi-basic-honeypot.js
Last active January 24, 2023 22:13
Pixi.js basic example with a rotating Honeypot
var renderer = PIXI.autoDetectRenderer(750, 600,{backgroundColor : 0x1099bb});
document.getElementById("rotating-honeypot").appendChild(renderer.view);
// create the root of the scene graph
var stage = new PIXI.Container();
// create a texture from an image path
var texture = PIXI.Texture.fromImage('../assets/images/mascot.png');
// create a new Sprite using the texture
@Manouchehri
Manouchehri / fix-broken-epub.txt.sh
Created December 4, 2015 06:37
Fix a broken EPUB to upload to Google Play Books. Requires calibre.
ebook-convert broken-book.epub fixed-book.epub