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
// C#9 | |
using System; | |
using System.Collections.Generic; | |
foreach (var (value, index) in 5..10) | |
{ | |
Console.WriteLine($"Value = {value.ToString()}, Index = {index.ToString()}"); | |
} | |
public static class RangeExtensions |
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
<?php | |
const TIC_MAP_WIDTH = 240; | |
const TIC_MAP_HEIGHT = 136; | |
const PICO_MAP_WIDTH = 128; | |
const PICO_MAP_HEIGHT = 32; | |
function tic80_map_file_to_p8($strMapFile, $strPicoFile) | |
{ |
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
// https://frarees.github.io/default-gist-license | |
using System; | |
using UnityEngine; | |
[AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)] | |
public class MinMaxSliderAttribute : PropertyAttribute | |
{ | |
public float Min { get; set; } | |
public float Max { get; set; } |
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
#!/bin/sh | |
# | |
# Simple XDG Install Script for Linux Games | |
# | |
# Features: | |
# - Communicates with the desktop via the xdg-utils vendor integration scripts. | |
# (No need to upgrade if the implementation details change.) | |
# - Icons are resolved via the desktop theming system, granting theme | |
# developers the ability to provide customized versions which preserve the | |
# overall system aesthetic. |