Skip to content

Instantly share code, notes, and snippets.

View firasuke's full-sized avatar
🎐
لَا بُدَّ مِنْ رِيحٍ تُبَدِّدُ اَلْغُيُومْ...

Firas Khalil Khana firasuke

🎐
لَا بُدَّ مِنْ رِيحٍ تُبَدِّدُ اَلْغُيُومْ...
View GitHub Profile
@Rabios
Rabios / numtable.lua
Last active June 11, 2021 21:51
Simple way to get biggest and smallest number from table in Lua
-- Written by Rabia Alhaffar in 26/September/2020
-- Simple way to get biggest and smallest number from table in Lua
local function bignum(t)
local _ = -math.huge
for i in ipairs(t) do
if (t[i] >= _) then
_ = t[i]
end
end
return _
@Rabios
Rabios / rectangle.java
Created August 10, 2020 20:18
Extending for raylib rectangle class for java bindings,Place it before main void
public static class Rectangle extends Raylib.Rectangle {
public Rectangle() {
super();
}
public Rectangle(float x, float y, float width, float height) {
x(x);
y(y);
width(width);
height(height);
}
@tterb
tterb / README-badges.md
Last active April 16, 2024 03:21
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@lh3
lh3 / getopt.c
Last active November 12, 2022 17:23
Portable getopt/getopt_long from musl
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "getopt.h"
char *optarg;
int optind=1, opterr=1, optopt, __optpos, optreset=0;
#define optpos __optpos
@tokhi
tokhi / unixToolbox.md
Last active December 17, 2023 20:43
Collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users.

#Unix Toolbox

This document is a collection of Unix/Linux/BSD commands and tasks which are useful for IT work or for advanced users. This is a practical guide with concise explanations, however the reader is supposed to know what s/he is doing.

##Unix Toolbox revision 14.4

The latest version of this document can be found at http://cb.vu/unixtoolbox.xhtml. Replace .xhtml on the link with .pdf for the PDF version and with .book.pdf for the booklet version. On a duplex printer the booklet will create a small book ready to bind. This XHTML page can be converted into a nice PDF document with a CSS3 compliant application (see the script example). See also the about page.
Error reports and comments are m