Skip to content

Instantly share code, notes, and snippets.

View aetheldev's full-sized avatar
🦄
Everyting is JavaScript

Muhammet M. Tezcan aetheldev

🦄
Everyting is JavaScript
View GitHub Profile
@randyprime
randyprime / entity_structure.odin
Last active October 27, 2025 14:08
ENTITY MEGASTRUCT
// the tl;dr -> https://storage.randy.gg/entity%20midwit.png
/*
ENTITY MEGASTRUCT
by randy.gg
This is an extremely simple and flexible entity structure for video games that doesn't make you want to
die when you're 20k lines deep in a project.
@lucaspoffo
lucaspoffo / imgui_impl_raylib.odin
Last active November 3, 2025 23:11
Raylib backend for Dear ImGui for the odin bindings
package imgui_impl_raylib
// Based on the raylib extras rlImGui: https://github.com/raylib-extras/rlImGui/blob/main/rlImGui.cpp
/* Usage:
import imgui_rl "imgui_impl_raylib"
import imgui "../../odin-imgui"
main :: proc() {
rl.SetConfigFlags({ rl.ConfigFlag.WINDOW_RESIZABLE })
@themarcba
themarcba / vuejs-like-mini-framework.html
Created May 23, 2020 12:24
This is the click counter example for a blog post I wrote about creating your own mini-Vue.js. https://marc.dev/blog/vue-from-scratch-part-5
<style>
* {
user-select: none;
}
body {
margin: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
#app {
height: 100vh;
@themarcba
themarcba / vuejs-like-reactive-state.html
Last active February 5, 2024 11:52
Vue.js-like reactive state
<script>
let activeEffect
class Dep {
subscribers = new Set()
depend() {
if (activeEffect) this.subscribers.add(activeEffect)
}
notify() {
this.subscribers.forEach((sub) => sub())
@themarcba
themarcba / vuejs-like-dependency.html
Last active February 5, 2024 11:51
Vue.js-like Reactive Dependency
<script>
let activeEffect
class Dep {
// Initialize the value of the reactive dependency
constructor(value) {
this._value = value
this.subscribers = new Set()
}
@themarcba
themarcba / vdom-finished.html
Last active August 22, 2024 04:54
Vue.js-like Virtual DOM
<div id="app"></div>
<script>
// Create virtual node
function h(tag, props, children) {
// Return the virtual node
return {
tag,
props,
children,
}
@akella
akella / setup.md
Last active June 29, 2025 16:48
My Setup