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 / sidebars.js
Last active March 7, 2021 11:36
Docusaurus sidebar generator by name of directories and files!
const fs = require("fs");
const path = require('path');
const SIDE_BAR_NAME = 'Sidebar';
const CATEGORY_NAME_CAPITALIZATION = true;
function parseDir(filename) {
const stats = fs.lstatSync(filename);
const info = {}
stock IsVehicleUpgradeCompatible(model, componentid) // by AirKite
{
switch(model)
{
case 400:
{
switch(componentid)
{
case 1008: return true;
case 1009: return true;
____ _ _ _ ___ ___ __ ____
| _ \ (_) | | | |__ \ / _ \/_ |___ \
| |_) |_ _ _| | __| | ) | | | || | __) |
| _ <| | | | | |/ _` | / /| | | || ||__ <
| |_) | |_| | | | (_| | / /_| |_| || |___) |
|____/ \__,_|_|_|\__,_| |____|\___/ |_|____/
Developed by
Roy Nash
THIS CODE IS PROTECTED BY COPYRIGHT LAWS, DISTRIBUTION OR USAGE OF ANY
OF THE CODE WITHOUT THE WRITTEN PERMISSION OF ITS AUTHOR (Roy Nash) IS
void __thiscall CNetGame::Packet_VehicleSync(stSAMP *this, int a2)
{
stSAMP *v2; // ebp
bool v3; // zf
_BYTE *v4; // edx
char v5; // al
char v6; // cl
struct stRemotePlayer *v7; // eax
stRemotePlayerData *v8; // eax
char a2a; // [esp+Ch] [ebp-174h]

Date : 2020-07-07 13:00:44

Directory e:\react-native\digimaz\src

Total : 411 files, 34324 codes, 1562 comments, 4293 blanks, all 40179 lines

details

Languages

| language | files | code | comment | blank | total |

const Float:CuffObjectOffsets[][] =
{
{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}, // 0
{0.021000, 0.101998, -0.009999, -6.099919, -7.100001, 83.099945, 1.489999, 3.036000, 1.957998}, // 1
{0.021000, 0.049998, -0.009999, -6.099919, -7.100001, 83.099945, 0.989999, 3.036000, 1.957998}, // 2
{0.037000, 0.034998, -0.017999, -6.099919, -7.100001, 83.099945, 1.025999, 3.036000, 1.714998}, // 3
{0.045001, 0.115998, 0.008000, 3.100080, -6.900001, 71.299934, 1.556999, 2.976998, 1.732998}, // 4
{0.031001, 0.046998, 0.007000, 3.100080, -6.900001, 82.899940, 1.230999, 2.976998, 1.693999}, // 5
{0.031001, 0.039998, -0.003999, -6.199919, -6.900001, 82.899940, 0.986999, 2.976998, 1.383998}, // 6
{0.061001, 0.037999, -0.017999, -12.599921, 2.999991, 77.899871, 1.132000, 2.822998, 1.527998}, // 7
let input = "aabbccdaaaabb";
let output = [];
for (let i = 0; i < input.length; i++) {
let current = input[i];
let charStream = current.toString();
let offset = 0;
if (input[i - 1] != input[i] && input[i + 1] != input[i]) {
local sampev = require 'lib.samp.events'
local raknet = require 'lib.samp.raknet'
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
end
function sampev.onSendVehicleSync(data)
--print('Hydra thrust angle: ' .. data.hydraThrustAngle[0] .. ', ' .. data.hydraThrustAngle[1])
@AmyrAhmady
AmyrAhmady / build.gradle
Last active September 8, 2020 08:16
test
apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
* bundle directly from the development server. Below you can see all the possible configurations
@AmyrAhmady
AmyrAhmady / sarvenaz.php
Last active September 8, 2020 23:38
redirect wp default register page to custom made one
<?php
function wpse127636_register_url($link) {
return str_replace(site_url('wp-login.php?action=register', 'login'),site_url('ثبت-نام', 'login'),$link);
}
add_filter('register','wpse127636_register_url');
function wpse127636_fix_register_urls($url, $path, $orig_scheme) {