Skip to content

Instantly share code, notes, and snippets.

View nihalkenkre's full-sized avatar
😇

Nihal Kenkre nihalkenkre

😇
  • NTK Interactive
  • Mumbai, India
View GitHub Profile
@nihalkenkre
nihalkenkre / main.c
Last active April 28, 2023 04:37
Looking to copy an image into a swapchain image
#include <Windows.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
// #include "cpu.h"
#include <vulkan/vulkan.h>
#include <vulkan/vulkan_win32.h>
@nihalkenkre
nihalkenkre / chip8.py
Last active May 8, 2023 07:34
Chip8 Interpreter using the PyVK Vulkan extension
from PySide6.QtWidgets import QApplication, QMainWindow, QWidget, QFileDialog
from PySide6.QtGui import QAction
from PySide6.QtCore import Signal, Slot, QTimer, QObject, QFile, QByteArray
import numpy as np
import copy
import sys
from pyvk import pyvk as vk
@nihalkenkre
nihalkenkre / forward_mode_auto_diff_ast.py
Created February 16, 2023 13:05
Forward Mode Automatic Differentiation Using Python's Abstract Syntax Tree
import inspect
import numpy as np
import ast
import copy
class Variable:
def __init__(self, name: str = '', value: float = 0.0):
self.name = name
self.value = value
@nihalkenkre
nihalkenkre / pickle.js
Created November 17, 2022 11:14
Parse a Python Pickled .pkl file into an actionable JSON object
const fs = require('fs');
var memo = []
var stack = []
opCodes = {
// Integers
INT: 0x49,
BININT: 0x4a,
BININT1: 0x4b,
using UnityEngine;
using UnityEngine.EventSystems;
namespace UnityEngine.EventSystems
{
public class MultiTouchInputModule : PointerInputModule
{
private PinchEventData _pinchData;
private RotateEventData _rotateData;