Skip to content

Instantly share code, notes, and snippets.

View Developerayo's full-sized avatar
🐾
probably nothing

Shodipo Ayomide Developerayo

🐾
probably nothing
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
@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
@Developerayo
Developerayo / style.css
Last active November 30, 2020 17:45
design A-C md
/* Empty for now */
body {
-ms-text-size-adjust:100%;
-webkit-text-size-adjust:100%;
color:#24292e;
line-height:1.5;
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
font-size:16px;
line-height:1.5;
import {InMemoryCache} from 'apollo-cache-inmemory';
import {ApolloLink} from 'apollo-client-preset';
import {ApolloClient} from 'apollo-client';
import {withClientState} from 'apollo-link-state';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import compose from 'recompose/compose';
/*
Defaults
import React from 'react';
import { Mutation } from 'react-apollo';
import { adopt } from 'react-adopt';
import { gql } from 'apollo-boost';
const INCREASE_COUNT = gql`
mutation increaseCount {
increaseCount {
id
currentCount
@Developerayo
Developerayo / switch-case.c
Last active April 10, 2019 09:07
Switch case example in C++
#include <iostream>
using namespace std;
int main () {
// local variable declaration:
char grade = 'D';
switch(grade) {
case 'A' :
cout << "Excellent!" << endl;
"dependencies": {
"gatsby": "^2.0.76",
"gatsby-plugin-catch-links": "^2.0.9",
"gatsby-plugin-feed": "^2.0.8",
"gatsby-plugin-google-analytics": "^2.0.5",
"gatsby-plugin-i18n": "^0.4.2",
"gatsby-plugin-manifest": "^2.0.5",
"gatsby-plugin-offline": "^2.0.5",
"gatsby-plugin-react-helmet": "^3.0.0",
"gatsby-plugin-sharp": "^2.0.16",
import React from 'react';
import { Mutation } from 'react-apollo';
import { adopt } from 'react-adopt';
import { gql } from 'apollo-boost';
const INCREASE_COUNT = gql`
mutation increaseCount {
increaseCount {
id
currentCount
@msteckyefantis
msteckyefantis / meta_template.html
Created July 6, 2018 12:39
the one used for lessonshop, test your url at https://developers.facebook.com/tools/debug/
<title>LessonShop.net</title>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta property="og:url" content="https://lessonshop.net" />
<meta property="og:title" content="LessonShop.net" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Lessonshop is a lesson bookings marketplace that allows you to effortlessly take or teach lessons." />
<meta property="og:image" content="https://s3.amazonaws.com/lessonshop.net/other/the_logo_300_new.jpg" />
<meta property="fb:app_id" content="1515460021880400" />
<meta name="description" content="Lessonshop is a lesson bookings marketplace that allows you to effortlessly take or teach lessons." />
@SaraSoueidan
SaraSoueidan / index.html
Created February 4, 2013 13:13
A CodePen by Sara Soueidan. CSS3 Testimonials Slider - Metro-style testimonials slider
<h1> CSS3 Testimonials Slider</h1>
<div class="container">
<input type="radio" name="nav" id="first" checked/>
<input type="radio" name="nav" id="second" />
<input type="radio" name="nav" id="third" />
<label for="first" class="first"></label>
<label for="second" class="second"></label>
<label for="third" class="third"></label>