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
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 |
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
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; |
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
import '@/styles/globals.css' | |
export default function App({ Component, pageProps }) { | |
return <Component {...pageProps} /> | |
} |
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
import { Html, Head, Main, NextScript } from 'next/document' | |
export default function Document() { | |
return ( | |
<Html lang="en"> | |
<Head /> | |
<body> | |
<Main /> | |
<NextScript /> | |
</body> |
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
const getGistVisibility = async () => { | |
const gistVisibility = await vscode.window.showQuickPick( | |
["public", "secret"], | |
{ | |
placeHolder: "Choose the gist visibility", | |
} | |
); | |
if (!gistVisibility) { |
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
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"; |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"jsx": "react", | |
"target": "es5", | |
"module": "commonjs", | |
"strict": true, | |
"noImplicitAny": true, | |
"strictNullChecks": true, | |
"strictFunctionTypes": true, | |
"baseUrl": ".", |
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
"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: |
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
out | |
dist | |
node_modules | |
.vscode-test/ | |
*.vsix |
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
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 |
NewerOlder