Skip to content

Instantly share code, notes, and snippets.

View kinjalkishor's full-sized avatar

Kinjal Kishor kinjalkishor

View GitHub Profile
@kinjalkishor
kinjalkishor / gist:5b3f19b1deb23f23ea414382febf5b57
Created July 5, 2021 20:28
Hindi saying from Mahabharat by Shri Krishna
जो सो रहा हो उसे तो जगा सकते हैं, लेकिन जो आँखे मूँद कर सोने का अभिनय कर रहा हो उसे कैसे जगाएंगे |
(A person who is sleeping can be woke up, but how to awaken one who is acting of sleeping by closing his eyes.)
#pragma once
#include <d3d11.h>
#include <d3d11_4.h>
//#include <dxgi.h>
//#include <dxgi1_6.h>
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "dxguid.lib")
@kinjalkishor
kinjalkishor / pascal_all_tutorials.pas
Created February 5, 2023 23:01
pascal_all_tutorials
{$mode objfpc} // directive to be used for defining classes
{$m+} // directive to be used for using constructor
//{$static on}
(*
{$MODE OBJFPC} //directive to be used for creating classes
{$M+} //directive that allows class constructors and destructors
*)
program HelloWorld;
@kinjalkishor
kinjalkishor / game_loops.cpp
Created February 11, 2023 03:07
Game Loops
//----------------------
// Gaffer On Games
// https://gafferongames.com/post/fix_your_timestep/
//----------------------
// Fixed delta time
// If delta time match the display refresh rate, and you can ensure that your update loop takes less than one frame worth of real time.
double t = 0.0;
double dt = 1.0 / 60.0;
while (!quit) {
@kinjalkishor
kinjalkishor / Simple WinApi window.cpp
Last active August 26, 2023 13:34
Simple WinApi window
#if defined(_MSC_VER)
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "gdi32.lib")
#endif
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <stdio.h>
@kinjalkishor
kinjalkishor / Simple WinApi window class version.cpp
Last active August 26, 2023 13:36
Simple WinApi window class version
#if defined(_MSC_VER)
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "gdi32.lib")
#endif
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
@kinjalkishor
kinjalkishor / hindi songs list.txt
Last active February 25, 2023 07:45
hindi songs list
Aa Hi Jaiye
Aa Jaane Ja (The Baby Can You Feel The Magic Mix).mp3
Aaa Eee Ooo
Aaila Re
Aaine Ke Sau Tukde Kar Ke Humne Dekhe Hai
Aaj Kal Tere Mere Pyar Ke Charche
Aaj Meri Zindagi
Aanan Faanan
Aap Jaisa Koi Meri Zindagi Mein Aaye - Nazia
Aap Ki Kashish
@kinjalkishor
kinjalkishor / simple variadic pritln dlang and cpp.h
Last active April 17, 2023 02:24
simple variadic println in dlang (nogc) & C++ without formatting using pritnf
For custom types struct ostrz containing [256]char array is used, which is returned from overloaded print functions.
// DLANG
module nogc_print;
import core.stdc.stdio;
/*
@nogc
void main() {
@kinjalkishor
kinjalkishor / win_basic_wnd2.cpp
Last active September 6, 2023 03:08
Simple WinApi window with functions
#if defined(_MSC_VER)
#pragma comment(lib, "user32.lib")
#pragma comment(lib, "gdi32.lib")
#endif
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <stdio.h>