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
@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',
@jilyaluk
jilyaluk / pcap_netconn_logger.go
Last active December 6, 2022 16:29
Wraps your net.Conn and saves data in it to pcap
var (
pcapWriter *pcapgo.Writer
tcpPort uint16 = 1023
)
func init() {
f, err := os.Create("/tmp/test.pcap")
if err != nil {
panic(err)
}
package main
import (
"bytes"
"fmt"
"log"
"github.com/google/gopacket"
"github.com/google/gopacket/pcap"
)
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active May 7, 2024 19:39
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

@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};
@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:
@bogdan-kulynych
bogdan-kulynych / install-cuda-10-bionic.sh
Last active December 5, 2023 10:26
Install CUDA 10 on Ubuntu 18.04
# WARNING: These steps seem to not work anymore!
#!/bin/bash
# Purge existign CUDA first
sudo apt --purge remove "cublas*" "cuda*"
sudo apt --purge remove "nvidia*"
# Install CUDA Toolkit 10
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
@mrbar42
mrbar42 / README.md
Last active March 28, 2024 18:06
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@pinge
pinge / iphone.ubuntu.md
Last active June 14, 2023 07:21
mounting iPhone storage in Ubuntu 16.04 LTS

mounting iPhone storage in Ubuntu 16.04 LTS

check if your device was recognized correctly

$ dmesg | grep ipheth
[62051.385352] ipheth 1-5:4.2: Apple iPhone USB Ethernet device attached
[62051.385437] usbcore: registered new interface driver ipheth

create mounting point and make it writable (optional)

@rohitner
rohitner / skfuzzy.ipynb
Created March 3, 2018 16:22
basic use of scikit-fuzzy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.