Skip to content

Instantly share code, notes, and snippets.

View IS4Code's full-sized avatar
🇺🇦
​Freedom to the oppressed!

IS4 IS4Code

🇺🇦
​Freedom to the oppressed!
View GitHub Profile
@IS4Code
IS4Code / DelphiFormReader.cs
Created March 12, 2022 12:35
DelphiFormReader
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace IS4.Delphi
{
public static class DelphiFormReader
@IS4Code
IS4Code / idea.cpp
Created February 22, 2021 10:23
C++ reflection idea
class std::identifier
{
public:
template <size_t Size>
consteval identifier(const char (&name)[Size]);
consteval const char (&name() const)[auto];
}
struct *
@IS4Code
IS4Code / json.pwn
Created May 9, 2018 14:33
JSON parser example using PawnPlus
#include <a_samp>
#include <file>
#include <float>
#include <PawnPlus>
const json_ichar = -2;
const GlobalVariant:json_error_obj = GlobalVariant:-1;
static stock File:json_input;
@IS4Code
IS4Code / sa_grass.pwn
Last active August 6, 2024 07:45
Foliage and other procedurally generated objects for SA-MP
This file has been truncated, but you can view the full file.
/*
Mozilla Public License Version 2.0
Copyright (c) 2018 IllidanS4
This Source Code Form is subject to the terms of the Mozilla Public License,
v. 2.0. If a copy of the MPL was not distributed with this file, You can
obtain one at https://mozilla.org/MPL/2.0/.
*/
@IS4Code
IS4Code / i_foreach.inc
Last active October 19, 2017 19:35
i_foreach
/*
The MIT License (MIT)
Copyright (c) 2017 IllidanS4
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:
The above copyright notice and this permission notice shall be included in all
/*
The MIT License (MIT)
Copyright (c) 2017 IllidanS4
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:
The above copyright notice and this permission notice shall be included in all
@IS4Code
IS4Code / entityiter.lua
Created July 14, 2017 12:47
FiveM entity iterators
--[[The MIT License (MIT)
Copyright (c) 2017 IllidanS4
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
/*
The MIT License (MIT)
Copyright (c) 2017 IllidanS4
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:
The above copyright notice and this permission notice shall be included in all
/*
The MIT License (MIT)
Copyright (c) 2016 IllidanS4
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:
The above copyright notice and this permission notice shall be included in all
/*
The MIT License (MIT)
Copyright (c) 2016 IllidanS4
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:
The above copyright notice and this permission notice shall be included in all