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
#!/usr/bin/env python | |
# Type: Python-Fu | |
# Title: Export layers to PNG files | |
# Description: Automatically export each layer in the current image as a separate PNG file. | |
# Author: Jasper Honkasalo | |
# Version: 2023.1 | |
# Menu-Path: File/Export layers to PNG files | |
from gimpfu import * |
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 System.Configuration; | |
public static class Config | |
{ | |
private static Configuration configManager; | |
private static KeyValueConfigurationCollection configuration; | |
// Support lazy loading initialization. | |
private static bool hasInitialized; |
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
// Compares the speed of two different implementations of Bresenham's Line Algorithm. | |
// Draws the resulting lines on a user defined canvas. | |
using System.Diagnostics; | |
// Size of the drawn canvas. | |
const int canvasWidth = 128; | |
const int canvasHeight = 128; | |
// First point. |
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 System.Collections.Generic; | |
using UnityEngine; | |
namespace Framework.EventSystem | |
{ | |
[CreateAssetMenu(menuName="EventChannel", fileName="EventChannel_")] | |
public class EventChannel : ScriptableObject | |
{ | |
[SerializeField] private List<EventListener> listeners = new(); |
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 System; | |
using System.Collections; | |
using UnityEngine; | |
/// <summary> | |
/// | |
/// State based flickering light implementation by Jasper Honkasalo (japsu.honkasalo@gmail.com). | |
/// | |
/// This piece of code is free. It comes without any warranty, to | |
/// the extent permitted by applicable law. You can redistribute it |