Skip to content

Instantly share code, notes, and snippets.

View Jaysmito101's full-sized avatar
πŸ™ƒ

Jaysmito Mukherjee Jaysmito101

πŸ™ƒ
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jaysmito101
Jaysmito101 / code.c
Last active June 30, 2023 18:19
Efficient Partitioning of a N-Dimensional Axis Aligned Space into N Subspaces
/*
MIT License
Copyright (c) 2023 Jaysmito Mukherjee (jaysmito101@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#include <cstdint>
#include <iostream>
#include <algorithm>
// #include "Timer.hpp" [ See : https://gist.github.com/Jaysmito101/bb3d33bba38baa08c9d057e6ff12b3a4 ]
int array_main[4096 * 4096];
int array_copy[4096 * 4096];
@Jaysmito101
Jaysmito101 / maruga.h
Created February 21, 2022 14:45
Simple Virtual Machine
#ifndef MARUGA_H
#define MARUGA_H
#define MARUGA_VM_MEM_SIZE 4096*4096
#define MARUGA_REGISTER_EAX 0
#define MARUGA_REGISTER_EBX 1
#define MARUGA_REGISTER_ECX 3
#define MARUGA_REGISTER_EDX 4
@Jaysmito101
Jaysmito101 / PixelArt.java
Created August 8, 2021 19:45
A simple java program to convert any image into pixel art!
import javax.imageio.*;
import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
public class PixelArt{
public static void main(String[] args){
String path = "";
@Corralx
Corralx / gist:d44a7696aa06d594605f
Last active July 17, 2022 05:04
Cmake source groups example for Visual Studio
:::cmake
set(ALL_FILES
platform/class.cpp
platform/class.hpp
core/another_class.hpp
)
foreach(FILE ${ALL_FILES})
get_filename_component(PARENT_DIR "${FILE}" PATH)
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active October 17, 2026 21:31
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active November 6, 2026 22:00
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@soulik
soulik / generator.lua
Created April 30, 2014 19:22
Mandelbrot set generator in Lua
return singleton(function()
local o = {}
local graphics, surfaces, matrix, bit, complex, color_spaces
local rad = math.rad
o.init = function()
matrix = math.matrix()
surfaces = (require 'EngineB/graphics/textures/surface')()
graphics = (require 'EngineB/graphics')()
complex = require 'utils/complex'
@rxaviers
rxaviers / gist:7360908
Last active November 15, 2026 22:37
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: