Skip to content

Instantly share code, notes, and snippets.

View Developerayo's full-sized avatar
🛠️
Busy Building Ethereum's Stateless Layer

Shodipo Ayomide Developerayo

🛠️
Busy Building Ethereum's Stateless Layer
View GitHub Profile
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract INTMAXWalletPayment is ReentrancyGuard {
struct Invoice {
uint256 amountDue;
address currency; // ERC20 token address
import React, { useRef, useState, useEffect } from "react";
import Webcam from "react-webcam";
import { Global, css } from "@emotion/react";
import styled from "@emotion/styled";
const Container = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
@Developerayo
Developerayo / _app.js
Created September 6, 2023 16:37
From File
import '@/styles/globals.css'
export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
}
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
const getGistVisibility = async () => {
const gistVisibility = await vscode.window.showQuickPick(
["public", "secret"],
{
placeHolder: "Choose the gist visibility",
}
);
if (!gistVisibility) {
import * as vscode from "vscode";
import axios from "axios";
import * as fs from "fs";
import * as path from "path";
const GITHUB_API_URL = "https://api.github.com/gists";
const GITHUB_AUTH_SCHEME = "github";
const GITHUB_AUTH_SCOPES = ["gist"];
const COMMAND_CREATE_GIST_ACTIVE_EDITOR = "code-to-gist.createGistFromActiveEditor";
const COMMAND_CREATE_GIST_EXPLORER = "code-to-gist.createGistFromExplorer";
{
"compilerOptions": {
"jsx": "react",
"target": "es5",
"module": "commonjs",
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": ".",
"use strict";
/*
A SIMPLE TIC-TAC-TOE GAME IN JAVASCRIPT
(1) Grid layout
The game grid is represented in the array Grid.cells as follows:
out
dist
node_modules
.vscode-test/
*.vsix
@Developerayo
Developerayo / users.sql
Created March 2, 2021 12:00
Query: List of top 100 Nigerian Stack Overflow users
SELECT TOP 100
ROW_NUMBER() OVER(ORDER BY Reputation DESC) AS [#],
Id AS [User Link],
Reputation
FROM
Users
WHERE
LOWER(Location) LIKE '%nigeria%'
OR UPPER(Location) LIKE '%NIGERIA%'
ORDER BY