Skip to content

Instantly share code, notes, and snippets.

View alofeoluwafemi's full-sized avatar
:octocat:

Alofe Oluwafemi alofeoluwafemi

:octocat:
View GitHub Profile
@alofeoluwafemi
alofeoluwafemi / dcask-metadata.json
Last active February 21, 2024 12:16
DCASK Metadata
{
"name": "DigiCask Devnet Token",
"symbol": "DCASK",
"description": "Offcial token of the DigiCask tokenization platform.",
"image": "https://www.digicask.finance/Logo/Logo3.png"
}
@alofeoluwafemi
alofeoluwafemi / contracts...OracleInterface.sol
Created October 7, 2022 14:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
interface OracleInterface {
function fulfillOracleRequest(
uint requestId,
bytes32 data
) external returns (bool);
@alofeoluwafemi
alofeoluwafemi / contracts...Oracle.sol
Created October 7, 2022 14:02
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./OracleInterface.sol";
contract Oracle is OracleInterface {
address public nodeAddress;
string public adapterId;
@alofeoluwafemi
alofeoluwafemi / contracts...PriceConsumer.sol
Created October 7, 2022 13:58
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./Oracle.sol";
contract PriceConsumer {
Oracle public oracleAddress;
uint public price;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract KeylessHiddenEthCreator {
uint public currentContractNonce = 1; // keep track of this contracts nonce publicly (it's also found in the contracts state)
// determine future addresses which can hide ether.
function futureAddresses(uint8 nonce) public view returns (address) {
if(nonce == 0) {
return address(uint160(uint256(keccak256(abi.encodePacked(bytes32("0xd6"), bytes32("0x94"), this, bytes32("0x80"))))));
}
// <ORACLIZE_API>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016 Oraclize LTD
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
| **Product** | **Image** | **Tags** |
|----------------|-------------------|----------|
| Sleeveless Jump Suit| [jump-suit.jpg](https://eecommerce.s3.amazonaws.com/jump-suit.jpg)|*women, jump suit*
| Men Jean| [jean.jpg](https://eecommerce.s3.amazonaws.com/jean.jpg)|*men,pants,jean*
|Pencil Skirt| [pencil-skirt.jpg](https://eecommerce.s3.amazonaws.com/pencil-skirt.jpg)|*women,skirt*
|Men Sandal| [sandal.jpg](https://eecommerce.s3.amazonaws.com/sandal.jpg) |*men,footwear,sandal*
|Smock Top| [smock-top.jpg](https://eecommerce.s3.amazonaws.com/smock-top.jpg) |*women,top*
|T-Shirt| [tees.jpg](https://eecommerce.s3.amazonaws.com/tees.jpg) |*men,women,top*
Product Image Tags
Sleeveless Jump Suit https://eecommerce.s3.amazonaws.com/jump-suit.jpg women jumpsuit
Men Jean https://eecommerce.s3.amazonaws.com/jean.jpg men pants jean
Pencil Skirt https://eecommerce.s3.amazonaws.com/pencil-skirt.jpg women skirt
Men Sandal https://eecommerce.s3.amazonaws.com/sandal.jpg men footwear sandal
Smock Top https://eecommerce.s3.amazonaws.com/smock-top.jpg women top
T-Shirt https://eecommerce.s3.amazonaws.com/tees.jpg men women top

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@alofeoluwafemi
alofeoluwafemi / media-query.css
Created January 11, 2018 16:27 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS