Skip to content

Instantly share code, notes, and snippets.

View AmyrAhmady's full-sized avatar
:shipit:
shipit shipit

iAmir AmyrAhmady

:shipit:
shipit shipit
View GitHub Profile
@AmyrAhmady
AmyrAhmady / josh.c
Last active October 21, 2019 12:02
reeeeeeeeeeeee
int __thiscall sub_401010(int *this)
{
int *v1; // ebx
int v2; // ecx
_DWORD *v3; // eax
signed int v4; // edi
unsigned int v5; // esi
int v6; // edi
int v7; // esi
int v8; // eax
#include <Windows.h>
#include <iostream>
#include "SAA2.h"
const char* SAA2_FILES_A[] =
{
"loadscs.txd",
"HANDLING.CFG",
"surface.dat",
"TIMECYC.DAT",
if (firstname!=NULL) {
assert(strlen(firstname)<=sNAMEMAX);
strcpy(symbolname,firstname); /* save symbol name */
tag=firsttag;
} else {
tag= (firsttag>=0) ? firsttag : pc_addtag(NULL);
tok=lex(&val,&str);
assert(!fpublic);
if (tok==tNATIVE || (tok==tPUBLIC && stock))
error(42); /* invalid combination of class specifiers */
@AmyrAhmady
AmyrAhmady / sc1.cpp
Created December 31, 2019 14:29
better
int main()
{
if (firstname != NULL)
{
assert(strlen(firstname) <= sNAMEMAX);
strcpy(symbolname, firstname); /* save symbol name */
tag = firsttag;
}
else
{
@AmyrAhmady
AmyrAhmady / asp.cs
Created January 30, 2020 09:40
mamad
using InstagramApiSharp.API.Builder;
using InstagramApiSharp.API;
using InstagramApiSharp;
using InstagramApiSharp.Classes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Threading.Tasks;
int __cdecl gen_gpci(_BYTE *a1, const char *a2, int factor)
{
int v3; // esi
unsigned __int8 v4; // al
unsigned __int8 v5; // dl
unsigned __int8 v6; // cl
unsigned __int8 v7; // bl
unsigned __int8 v8; // al
char v9; // cl
char v10; // bl
enum eWeaponType : unsigned int
{
WEAPON_UNARMED = 0x0,
WEAPON_BRASSKNUCKLE = 0x1,
WEAPON_GOLFCLUB = 0x2,
WEAPON_NIGHTSTICK = 0x3,
WEAPON_KNIFE = 0x4,
WEAPON_BASEBALLBAT = 0x5,
WEAPON_SHOVEL = 0x6,
WEAPON_POOLCUE = 0x7,
import React from 'react';
import { View, Text, SafeAreaView } from 'react-native';
import BottomSheet from 'reanimated-bottom-sheet'
import { widthPercentageToDP as wp, heightPercentageToDP as hp } from 'react-native-responsive-screen';
export default class dummyPage extends React.Component {
constructor(props) {
super(props);
}
@AmyrAhmady
AmyrAhmady / qrcodesamp.js
Last active October 10, 2023 04:37
a simple js qr code for samp-node
import qrcode from "qrcode-generator";
async function generateQRCodeForSamp(context) {
let typeNumber = 4;
let errorCorrectionLevel = 'L';
let qr = qrcode(typeNumber, errorCorrectionLevel);
qr.addData(context);
qr.make();
let newQRCode = "";
SCRIPT_API(SendPlayerGameInitData,
bool(std::shared_ptr<PlayerScriptingData> player, bool zoneNames, bool playerPedAnims, bool interiorWeapons,
bool limitGlobalChatRadius, float globalChatRadius, bool stuntBonus,
float nameTagDrawDistance, bool disableInteriorEnterExits, bool disableNameTagLOS,
bool manualVehicleEngineAndLights, uint32_t spawnInfoCount, bool showNameTags,
bool showPlayerMarkers, uint8_t worldTime, uint8_t weather, float gravity,
bool lanMode, uint32_t deathDropAmount, bool instagib, uint32_t onFootRate,
uint32_t inCarRate, uint32_t weaponRate, uint32_t multiplier, uint32_t lagCompensation,
std::string const & serverName, bool vehicleFriendlyFire))
{