Skip to content

Instantly share code, notes, and snippets.

@pguso
pguso / nft-market.sol
Last active February 28, 2023 19:02 — forked from dabit3/basicmarket.sol
Basic NFT Marketplace with Price Feed (MATIC to USD)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract NFT is ERC721URIStorage {
@pguso
pguso / gist:e92a0769e5c1636eb8b3
Created February 2, 2016 11:30 — forked from davedevelopment/gist:2884984
Print routes and where they're defined for a silex app
#!/usr/bin/env php
<?php
# bin/routes
$app = require __DIR__ . '/../app/bootstrap.php';
$routes = $app['routes']->all();
foreach($routes as $route) {
$cr = new ReflectionFunction($route->getDefault('_controller'));