Skip to content

Instantly share code, notes, and snippets.

@gladunrv
gladunrv / contracts...artifacts...TakeMyMuffin_metadata.json
Created May 28, 2022 19:53
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
{
"compiler": {
"version": "0.8.7+commit.e28d00a7"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [],
"stateMutability": "nonpayable",
@gladunrv
gladunrv / contracts...poligon.sol
Created May 28, 2022 19:47
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=true&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract TakeMyMuffin is ERC721URIStorage, Pausable, Ownable {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract BingoCoin is ERC20, Pausable, Ownable {
mapping (address => bool) public isBlackListed;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract TakeMyMuffin is ERC721URIStorage, Pausable, Ownable {
<?
$fileId = isset($_REQUEST['id']) ? (int) $_REQUEST['id'] : 0;
file_put_contents( 'log_' . $fileId . '.txt', PHP_EOL, FILE_APPEND );
file_put_contents( 'log_' . $fileId . '.txt', date('H:i d-m-Y'), FILE_APPEND );
file_put_contents( 'log_' . $fileId . '.txt', PHP_EOL, FILE_APPEND );
file_put_contents( 'log_' . $fileId . '.txt', print_r($_REQUEST, true), FILE_APPEND );
file_put_contents( 'log_' . $fileId . '.txt', print_r($_SERVER, true), FILE_APPEND );
file_put_contents( 'log_' . $fileId . '.txt', PHP_EOL, FILE_APPEND );
0x3797CF7779FE48161afe2Ee1c10567BD32e6e9D5
0x65cF677D187b23416d4014E7691Df715aD3b093A
0xe2FFD2dE613e406217D7d3633Fb89C63bC6cCFc5
<?
public function searchForDating($data, $limit = 200)
{
$queryTop = $this->searchForDatingQuery($data, true)->limit($limit);
$queryNonTop = $this->searchForDatingQuery($data)->limit($limit);
$queryFilterViewedUsers = $this->filterViewedUsers();
$query = (new Query)
->select('*')
->from([
@gladunrv
gladunrv / search.sql
Last active March 14, 2018 12:06
search
SELECT
*
FROM
((SELECT
uid,
users.dating_name,
users.vip,
users.city_id,
users.country_id,
users.dating_year_of_birthy,