Skip to content

Instantly share code, notes, and snippets.

// Adapted from https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-commandlinetoargvw#examples
#include <windows.h>
#include <stdio.h>
#include <shellapi.h>
int __cdecl main(int argc, char* argv[])
{
LPWSTR* szArglist;
int nArgs;
@cartr
cartr / gist:7851463
Created December 7, 2013 23:48
Pygame Boilerplate
import pygame
pygame.init() #Start Pygame
screen = pygame.display.set_mode((640,480)) #Start the screen
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT: #The user closed the window!
running = False #Stop running