Boilerplate code
A page to let you easily copy and paste some boilerplate code into your program
HTML
<!DOCTYPE html>
<html>
<head>
<title>HTML Boilerplate</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
C#
using System;
namespace MyApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
}
}
}
Pygame
import pygame
pygame.init()
screen = pygame.display.set_mode((1280, 720))
clock = pygame.time.Clock()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill("purple")
# Game rendering here
pygame.display.flip()
clock.tick(60)
pygame.quit()