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 Fonts */ | |
@import url("https://fonts.googleapis.com/css2?family=Varela+Round&display=swap"); | |
/* Global Variables */ | |
:root { | |
--anthonian-dark-blue: #009eff; | |
--anthonian-light-blue: #02ddf7; | |
--anthonian-primary-color: rgb(98, 49, 211); | |
--anthonian-anchor-active: rgb(0, 174, 255); | |
--anthonian-anchor: rgb(116, 165, 255); | |
--anthonian-anchor-hover: rgb(255, 255, 255); |
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
def mysum(lst, s): | |
while len(lst) > 0: | |
s += lst[0] | |
lst.pop(0) | |
s = mysum(lst, s) | |
return s |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8; | |
contract Piggy { | |
address payable owner; | |
uint public releaseTimestamp; | |
constructor() payable { | |
owner = payable(msg.sender); | |
} |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.10; | |
interface IERC20 { | |
function name() external view returns (string memory); | |
function symbol() external view returns (string memory); | |
function totalSupply() external view returns (uint256); | |
function balanceOf(address _owner) external view returns (uint256 balance); | |
function transfer(address _to, uint256 _value) external returns (bool success); |
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
//SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.10; | |
contract VendingMachine { | |
mapping(string => mapping(address => uint)) public items; | |
// A mapping from item to a mapping of addresses containing a certain number of the items | |
mapping(string => uint) public prices; // mapping between itemm and its price | |
// stocking up the store xD | |
constructor() { |
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 crypto from "crypto"; | |
class Transaction { | |
constructor( | |
public amount: number, | |
public payer: string, | |
public payee: string | |
) {} | |
toString() { |
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
[ | |
{ | |
"name": "SBUS test", | |
"description": "description of test", | |
"protocol": "SBUS", | |
"synchronous": false, | |
"inputs": [ | |
{ | |
"signal": "0x00", | |
"channel": "0x00" |