Skip to content

Instantly share code, notes, and snippets.

View mertyildiran's full-sized avatar
:octocat:
Doing some octopus work

M. Mert Yildiran mertyildiran

:octocat:
Doing some octopus work
View GitHub Profile
@peterhellberg
peterhellberg / ebiten-chart.go
Created October 11, 2018 19:41
go-chart rendered by Ebiten
package main
import (
"container/ring"
"image"
"log"
"math/rand"
"os"
"time"
@kahootali
kahootali / counter-daemonset.yaml
Last active April 19, 2023 20:55
Kubernetes daemonset manifest to deploy counter app
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: counter-app
spec:
selector:
matchLabels:
app: counter
template:
metadata:
@mitallast
mitallast / wfc.ts
Created February 27, 2020 12:47
Wave Function Collapse implemented in typescript
// origin: https://github.com/robert/wavefunction-collapse/blob/master/main.py
interface Direction {
x: number;
y: number;
}
const UP: Direction = {x: 0, y: 1};
const DOWN: Direction = {x: 0, y: -1};
const LEFT: Direction = {x: -1, y: 0};
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active April 19, 2025 05:09
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

@seblegall
seblegall / reverseproxy.go
Last active April 15, 2025 07:36
A reverse proxy in Golang using Gin
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"github.com/gin-gonic/gin"
)
package main
import (
"bytes"
"fmt"
"log"
"github.com/google/gopacket"
"github.com/google/gopacket/pcap"
)
@ilyaluk
ilyaluk / LICENSE
Last active March 14, 2025 03:48
Wraps your net.Conn and saves data in it to pcap
MIT License
Copyright (c) 2025 Ilya Lukyanov
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
furnished to do so, subject to the following conditions:
@joshuamorony
joshuamorony / wfc-simple-tiled.ts
Created September 15, 2023 09:39
A TypeScript implementation based on Robert Heaton's "Even Simpler Tiled Model" of the Wave Function Collapse algorithm
type Tile = number;
type TileOrientation = 0 | 90 | 180 | 270;
export type TileMapping = Record<number, number>;
type Coordinates = [number, number];
enum DirectionKeys {
UP = 'UP',
DOWN = 'DOWN',
LEFT = 'LEFT',