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.0; | |
import "https://github.com/0xcert/ethereum-erc721/src/contracts/tokens/nf-token-metadata.sol"; | |
import "https://github.com/0xcert/ethereum-erc721/src/contracts/ownership/ownable.sol"; | |
contract newNFT is NFTokenMetadata, Ownable { | |
constructor() { | |
nftName = "Practical Crypto Progress Token"; |
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.1; | |
contract TimedCallbacks | |
{ | |
struct Job { uint time; address addr; bytes data; uint reward; address creator; } | |
Job[] jobs; | |
function register(uint _time, address _addr, bytes calldata _data) external payable returns (uint index) { | |
index = jobs.length; |
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
print(["fizzbuzz" if n % 15 == 0 else "fizz" if n % 3 == 0 else "buzz" if n % 5 == 0 else n for n in range(1, 34)]) |
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
typedef struct { | |
unsigned short red; | |
unsigned short green; | |
unsigned short blue; | |
} pixel; | |
char smooth2_descr[] = "smooth: NOT succint"; | |
void smooth2(int dim, pixel *src, pixel *dst) { | |
int i = 0, j = 0; |