Skip to content

Instantly share code, notes, and snippets.

View nevmerzhitsky's full-sized avatar
🪀

Sergey Nevmerzhitsky nevmerzhitsky

🪀
  • 07:41 (UTC +05:00)
View GitHub Profile
@raysan5
raysan5 / raylib_vs_sdl.md
Last active November 21, 2025 18:31
raylib vs SDL - A libraries comparison

raylib_vs_sdl

In the last years I've been asked multiple times about the comparison between raylib and SDL libraries. Unfortunately, my experience with SDL was quite limited so I couldn't provide a good comparison. In the last two years I've learned about SDL and used it to teach at University so I feel that now I can provide a good comparison between both.

Hope it helps future users to better understand this two libraries internals and functionality.

Table of Content

@stormwild
stormwild / wsl2.md
Last active April 18, 2025 03:05
Public Server from WSL2
@onomatopellan
onomatopellan / vhdx.md
Last active September 15, 2025 16:58
How to automount an external vhdx file in WSL2

Using a .vhdx file from another partition/disk in WSL2

  1. Ubuntu WSL2 must be already installed in C: system drive and user should be able to call windows binaries like wsl.exe from bash.

  2. We will install Alpine WSL2 distro in an external partition/disk:

@TheCyberQuake
TheCyberQuake / TwitchTvEmbedOnlyWhenLive.html
Last active November 11, 2024 20:08 — forked from capperstrnd/TwitchTvEmbedOnlyWhenLive.html
A simple script for embedding Twitch stream only when the channel is live, otherwise it is hidden.
<html>
<head>
<style>
.hide { display:none; }
/* Optional: The following css just makes sure the twitch video stays responsive */
#twitch {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
@vladox
vladox / download_sentry_data.py
Last active April 13, 2024 01:00 — forked from bubenkoff/download_sentry_data.py
Download all sentry events for a project. Useful for data processing
"""Download sentry data.
usage:
python download_sentry_data.py <org>/<project> <api_key>
"""
import requests
import csv
import sys
if __name__ == '__main__':
@winuxue
winuxue / puppeteer-ubuntu-1804.md
Created May 22, 2019 01:15
Solution for common dependences issues using puppeteer in ubuntu 18.04 (Bionic)

puppeteer dependeces in ubuntu 18.04 (Bionic)

error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

sudo apt-get install libnss3

error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

sudo apt-get install libxss1
@mcaskill
mcaskill / Function.Array-Chunk-By.php
Last active October 25, 2023 17:38
PHP : Splits an array into chunks using a callback function.
<?php
if (!function_exists('array_chunk_by')) {
/**
* Splits an array into chunks using a callback function.
*
* Chunks an array into arrays by iteratively applying the $callback function
* to the elements of the $array.
*
* @see https://rlaanemets.com/post/show/group-array-by-adjacent-elements-in-javascript
@tegimus
tegimus / VerifyCsrfToken.php
Created August 9, 2018 22:32
VerifyCsrfToken middleware for use with Lumen
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\Cookie;
use Illuminate\Contracts\Encryption\Encrypter;
use Illuminate\Session\TokenMismatchException;
class VerifyCsrfToken {
@kylekatarnls
kylekatarnls / Carbon-Frequently-asked-questions.md
Last active December 2, 2022 18:59
Carbon: Frequently asked questions

Carbon: Frequently asked questions