This file contains hidden or 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
| from PIL import Image, ImageFont, ImageDraw | |
| image = Image.new('RGB', (32 * 8, 16 * 16)) | |
| draw = ImageDraw.Draw(image) | |
| font = ImageFont.truetype("Px437_IBM_VGA9.ttf", 16) | |
| for i in range(1, 256): | |
| col = i % 32 |
This file contains hidden or 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
| DM/FFA mode | |
| ------------------ | |
| * Arena | |
| * Strafe City (NGV7QTST.AVI) | |
| - Arena (DM) but in the air | |
| * Super Arena | |
| - Includes teleport gates and "submergers" (probably up/down transports) | |
| * Cyber Dogfight (NGV12QTC.AVI) | |
| - Has flight pickups |
This file contains hidden or 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
| # Slow. Should use something like this instead https://www.geeksforgeeks.org/largest-rectangle-under-histogram/ | |
| rows, cols = (8, 8) | |
| arr = [[0]*cols]*rows | |
| arr[0] = [0, 0, 0, 0, 0, 0, 0, 0] | |
| arr[1] = [0, 1, 0, 1, 1, 0, 1, 0] | |
| arr[2] = [0, 1, 0, 1, 1, 0, 1, 0] | |
| arr[3] = [0, 1, 0, 1, 1, 0, 1, 0] | |
| arr[4] = [0, 1, 0, 1, 1, 0, 1, 0] | |
| arr[5] = [0, 1, 0, 0, 0, 0, 1, 0] |
This file contains hidden or 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
| Vector2 GetWindowDPI(void) | |
| { | |
| float xdpi = 1.0; | |
| float ydpi = 1.0; | |
| #if defined(PLATFORM_DESKTOP) | |
| Vector2 windowPos = GetWindowPosition(); | |
| int monitorCount; |
This file contains hidden or 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://github.com/mobile-shell/mosh/issues/403 | |
| kill `pidof mosh-server` |
This file contains hidden or 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.Generic; | |
| using System.IO; | |
| using System.Reflection; | |
| using System.Xml; | |
| using System.Xml.Serialization; | |
| using Microsoft.Xna.Framework; | |
| using Microsoft.Xna.Framework.Graphics; | |
| using MonoGame.Extended.Tiled.Serialization; |
This file contains hidden or 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
| go outside, get some sunshine, eat healthy, exercise | |
| don't buy Made in China | |
| question the mainstream media | |
| Twitter isn't real life. |