This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
use Brick\Math\BigInteger; | |
use Http\Client\Common\HttpMethodsClient; | |
use Http\Client\Common\HttpMethodsClientInterface; | |
use Http\Discovery\Psr17FactoryDiscovery; | |
use Http\Discovery\Psr18ClientDiscovery; | |
use Olifanton\Interop\Address; | |
use Olifanton\Interop\Boc\BitString; | |
use Olifanton\Interop\Boc\Cell; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // ton_wallet_address.php | |
// PHP 8.1 is required | |
use Olifanton\Mnemonic\TonMnemonic; | |
use \Olifanton\Ton\Contracts\Wallets\V3 as V3; | |
use \Olifanton\Ton\Contracts\Wallets\V4 as V4; | |
// 1. composer require olifanton/ton | |
require_once __DIR__ . "/vendor/autoload.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isIncognitoMode() { | |
return new Promise(function(resolve, reject) { | |
var fs = window.RequestFileSystem || window.webkitRequestFileSystem; | |
if (fs) { | |
fs( | |
window.TEMPORARY, | |
100, | |
function (fs) { | |
resolve(false); | |
}, function (err) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.system-font-stack { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin pagination(adjacents, numPages, display, currentPage, base) | |
- adjacents = (adjacents || 1) * 1; | |
- numPages = (numPages || 10) * 1; | |
- currentPage = (currentPage || 1) * 1; | |
- base = base || '#'; | |
- display = (display || 7) * 1; | |
ul.pagination | |
if numPages < display + adjacents * 2 | |
- var p = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
protected function bar($param) | |
{ | |
var_dump($param); | |
} | |
} |