Skip to content

Instantly share code, notes, and snippets.

View Wendelstein7's full-sized avatar
❤️
Making the world a better place

Wendelstein7 Wendelstein7

❤️
Making the world a better place
  • The Netherlands
View GitHub Profile
@Wendelstein7
Wendelstein7 / characterbox.lua
Last active November 17, 2019 17:15
Generate a character box in lua
for x = 0, 15 do
for y = 0, 15 do
c = string.format("%q", string.char(16 * x + y)):gsub("\"", ""):gsub("\n", "n")
c = string.rep(" ", 4 - #c) .. c
io.stdout:write(c)
end
io.stdout:write("\n")
end
--[[ OUTPUT:
@Wendelstein7
Wendelstein7 / huemap.cs
Last active April 16, 2020 18:04
Generating an image to use as a hue value cheat sheet (hue in degrees, factor, bytes and hexadecimal)
// HSV to RGB code from http://www.splinter.com.au/converting-hsv-to-rgb-colour-using-c/
// Other code by me
#r "System.Drawing";
using System.Drawing;
void HsvToRgb(double h, double S, double V, out int r, out int g, out int b)
{
// T. Nathan Mundhenk mundhenk@usc.edu
double H = h;
@PurpleBooth
PurpleBooth / README-Template.md
Last active June 28, 2024 02:47
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites