Skip to content

Instantly share code, notes, and snippets.

View vivekascoder's full-sized avatar
💭
Learning

Vivek vivekascoder

💭
Learning
View GitHub Profile
pragma solidity 0.8.0;
// We need some util functions for strings.
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "hardhat/console.sol";
contract MyEpicNFT is ERC721URIStorage {
@alkavan
alkavan / hardhat-openzeppelin-project.md
Created December 12, 2020 10:37
Hardhat and OpenZeppelin project bootstrap for Ethereum contract development

Install Instructions

Install Hardhat

npm install --save-dev hardhat

Initiate a new Hardhat project (in empty directory)

npx hardhat
import 'package:flutter/material.dart';
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
var x, y, sum;
from requests_html import HTMLSession
from bs4 import BeautifulSoup
session = HTMLSession()
all_git_ignore = []
def _fetchAllModuleData():
r = session.get("https://github.com/github/gitignore/")
soup = BeautifulSoup(r.content,'lxml')
class MenuBloc extends Bloc<MenuEvent, MenuState> {
MenuBloc() : super(MenuContacts());
//static var bottomNav = GlobalKey<ConvexAppBarState>();
final bottomNav = CBKey.bottomNav;
@override
Stream<MenuState> mapEventToState(MenuEvent event) async* {
if (event is GoToContacts) {
yield* _mapMenuGoToContacts();
import ReactDOM from 'react-dom';
import React from 'react';
import Gist from 'react-gist';
import './style.css';
const root = document.getElementById('root');