Skip to content

Instantly share code, notes, and snippets.

View NabiKAZ's full-sized avatar

Nabi KaramAliZadeh NabiKAZ

View GitHub Profile
@NabiKAZ
NabiKAZ / hamster_on_computer.js
Last active June 21, 2024 01:47
Running Hamster Telegram game on computer
// Programmer: @NabiKAZ (https://twitter.com/NabiKAZ) and Thanks for Erfan (https://github.com/ErfanBahramali)
// To run Hamster Telegram game on computer. Enter Telegram from this link https://web.telegram.org/k/
// Then open the game. When the "Play on your mobile" error appeared. Copy and paste this code in
// your browser console. Both the game is run in the opened window and the address written in the console
// can be run in a separate and full-screen browser.
// Caution: You are responsible for possible risks such as banning.
// The game link: https://t.me/Hamster_kombat_bot/start?startapp=kentId101554083
console.log("Use this address in your browser:", document.getElementsByTagName('iframe')[0].src = document.getElementsByTagName('iframe')[0].src.replace(/(tgWebAppPlatform=)[^&]+/, "$1android"));
@NabiKAZ
NabiKAZ / semantic-commit-messages.md
Created October 23, 2023 19:28 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@NabiKAZ
NabiKAZ / DeltaTimer.js
Last active March 5, 2022 02:36
Delta Timing for JavaScript
/**
@author <a href="mailto:aaditmshah@myopera.com">Aadit M Shah</a>
@edited by <a href="mailto:nabikaz@gmail.com">NabiKAZ</a>
@overview Delta Timing for JavaScript.
@copyright 2012
@version 1.0.1
*/
/**
@description Creates a new Delta Timer with start and stop methods.
@NabiKAZ
NabiKAZ / route.php
Last active July 10, 2024 00:04
For show advanced list of files and directories with sort, date, size, icon type,..., Save bellow content code as `route.php` file, and then run this command: `php -S 0.0.0.0:8080 -t . route.php` And then open `http://localhost:8080/` in the browser.
<?php
//@NabiKAZ
//https://gist.github.com/NabiKAZ/91f716faa89aab747317fe09db694be8
//For show advanced list of files and directories with sort, date, size, icon type,...,
//Save bellow content code as route.php file, and then run this command:
// php -S 0.0.0.0:8080 -t . route.php
//And then open http://localhost:8080/ in the browser.
//////////////////////////////////////////////////////////////////
// This block MUST be at the very top of the page!
@ob_start('ob_gzhandler');