Skip to content

Instantly share code, notes, and snippets.

View FireBanana's full-sized avatar
🎿
Chilling

Owais Akhtar FireBanana

🎿
Chilling
  • Los Santos Customs
  • Oulu, Finland
View GitHub Profile
@FireBanana
FireBanana / windowcontext.cpp
Last active January 9, 2023 17:00
Create a Win32 Window from console
#include <iostream>
#include <windows.h>
LRESULT __stdcall WindowProcedure(HWND window, UINT msg, WPARAM wp, LPARAM lp)
{
switch (msg)
{
case WM_DESTROY:
std::cout << "\ndestroying window\n";
PostQuitMessage(0);
@FireBanana
FireBanana / ScrabbleTrie.cs
Last active April 3, 2019 05:29
A prefix tree for scrabble or other word games.
using System;
using System.Collections;
using System.Collections.Generic;
/*
A 'dictionary' for scrabble or other games where you can add words and retrieve them with results such as:
input: "app"
result: "apple", "application"...
*/