Skip to content

Instantly share code, notes, and snippets.

View AmirrezaNasiri's full-sized avatar
🌎
Available for Hire

Amirreza Nasiri AmirrezaNasiri

🌎
Available for Hire
View GitHub Profile
<?php
use Evryn\LaravelToman\Facades\Toman;
use Evryn\LaravelToman\Money;
final class PaymentTest extends TestCase
{
/** @test */
public function requests_new_payment()
{
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Evryn\LaravelToman\CallbackRequest;
class PaymentController extends Controller
{
/**
<?php
use Evryn\LaravelToman\Facades\Toman;
// ...
$request = Toman::orderId(1234)
->amount(1000)
// ->description('Subscribing to Plan A')
// ->callback(route('payment.callback'))
<?php
use Evryn\LaravelToman\Facades\Toman;
use Evryn\LaravelToman\Money;
final class PaymentTest extends TestCase
{
/** @test */
public function requests_payment()
{
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Evryn\LaravelToman\CallbackRequest;
class PaymentController extends Controller
{
/**
<?php
use Evryn\LaravelToman\Facades\Toman;
// ...
$request = Toman::amount(1000)
// ->description('Subscribing to Plan A')
// ->callback(route('payment.callback'))
// ->mobile('09350000000')
On Chrome & Firefox:
1- Go to https://www.agar.live
2- Ctrl + Shift + I
3- Open `Console` tab
4- Copy these lines and hit Enter:
```
['body > center', '#fixedban', '#agar-live_300x250', '#cmpPersistentLink', '#cmpbox', '#statz', '.hide_chatbox'].forEach(function(selector) {
setInterval(function() {
document.querySelector(selector) && document.querySelector(selector).remove()
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://vault.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://vault.centos.org/5.11/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
exclude=redhat-logos php53*
#released updates
enabled=1
@AmirrezaNasiri
AmirrezaNasiri / index.html
Last active January 8, 2025 08:16
Telegram Share Button in HTML
<!--
This is a simple URL share button for Telegram application.
It's compatible with iOS/Android app, Telegram Desktop and uses its web mode for fallback.
-->
<a href="https://t.me/share/url?url={url_to_share}&text={caption_text}&to={phone_number}">
Share Me
</a>
<!--
@AmirrezaNasiri
AmirrezaNasiri / dynamic-nested-vuex-module-loader.js
Last active September 14, 2020 10:49
Dynamic nested Vuex module loader
/*
This script is a dynamic nested Vuex module loader.
By using it, you wont need to worry about manual module loading anymore.
Simply define your modules and the script will take care of the rest.
1- Follow this structure when you define your modules:
@/path/to/vuex/modules:
├── admin
│   ├── product <<-- It can be accessed as `admin/product`
│   │   ├── actions.js